fix(playbutton_card): title text overflow

This commit is contained in:
Kingkor Roy Tirtho 2023-03-07 13:11:37 +06:00
parent b327ffb108
commit 39ee0a92a8

View File

@ -190,33 +190,46 @@ class PlaybuttonCard extends HookWidget {
); );
final list = Row( final list = Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
// thumbnail of the playlist // thumbnail of the playlist
Flexible(
child: Row(
children: [
image, image,
const SizedBox(width: 10), const SizedBox(width: 10),
Column( Flexible(
crossAxisAlignment: CrossAxisAlignment.start, child: RichText(
mainAxisAlignment: MainAxisAlignment.center, overflow: TextOverflow.ellipsis,
text: TextSpan(
children: [ children: [
PlatformText( TextSpan(
title, text: title,
style: const TextStyle(fontWeight: FontWeight.bold), style: PlatformTextTheme.of(context)
.body
?.copyWith(fontWeight: FontWeight.bold),
), ),
const SizedBox(height: 5),
if (description != null) if (description != null)
PlatformText( TextSpan(
description!, text: '\n$description',
overflow: TextOverflow.fade,
style: PlatformTextTheme.of(context).caption, style: PlatformTextTheme.of(context).caption,
), ),
], ],
), ),
const Spacer(), ),
),
],
),
),
Row(
children: [
addToQueueButton, addToQueueButton,
const SizedBox(width: 10), const SizedBox(width: 10),
playButton, playButton,
const SizedBox(width: 10), const SizedBox(width: 10),
], ],
),
],
); );
return Ink( return Ink(