From 23cd0f60898a657fcf30cceeba1b6da13f48f3ce Mon Sep 17 00:00:00 2001 From: Chaphasilor Date: Thu, 3 Oct 2024 18:22:03 +0200 Subject: [PATCH] show album, tweak text styles --- .../AlbumScreen/song_list_tile.dart | 45 ++++++++++++++----- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/lib/components/AlbumScreen/song_list_tile.dart b/lib/components/AlbumScreen/song_list_tile.dart index 3a3050d5..288f6e4b 100644 --- a/lib/components/AlbumScreen/song_list_tile.dart +++ b/lib/components/AlbumScreen/song_list_tile.dart @@ -530,25 +530,46 @@ class TrackListItemTile extends StatelessWidget { ? TextStyle( color: Theme.of(context).colorScheme.secondary, fontSize: 15, - fontWeight: FontWeight.w400, + fontWeight: FontWeight.w500, height: 1.0) - : const TextStyle(fontSize: 15, height: 1.0), + : const TextStyle( + fontSize: 15, + height: 1.0, + fontWeight: FontWeight.w500), overflow: TextOverflow.ellipsis, maxLines: 2, ), ), Flexible( fit: FlexFit.loose, - child: Text( - baseItem.artists?.join(", ") ?? - baseItem.albumArtist ?? - AppLocalizations.of(context)!.unknownArtist, - style: TextStyle( - color: Theme.of(context).textTheme.bodyMedium!.color!, - fontSize: 13, - fontWeight: FontWeight.w300, - overflow: TextOverflow.ellipsis), - overflow: TextOverflow.ellipsis, + child: Text.rich( + overflow: TextOverflow.fade, + softWrap: false, + maxLines: 1, + TextSpan( + text: baseItem.artists?.join(", ") ?? + baseItem.albumArtist ?? + AppLocalizations.of(context)!.unknownArtist, + style: TextStyle( + color: Theme.of(context).textTheme.bodyMedium!.color!, + fontSize: 13, + fontWeight: FontWeight.w400, + overflow: TextOverflow.ellipsis), + children: [ + const WidgetSpan(child: SizedBox(width: 10.0)), + TextSpan( + text: baseItem.album, + style: TextStyle( + color: Theme.of(context) + .textTheme + .bodyMedium! + .color! + .withOpacity(0.6), + fontSize: 13, + fontWeight: FontWeight.w300, + ), + ), + ]), ), ), ],