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