songs list tab

This commit is contained in:
austinried
2025-12-06 09:42:53 +09:00
parent 16a79c81cb
commit a4e4c6fa57
6 changed files with 113 additions and 32 deletions

View File

@@ -66,19 +66,25 @@ class SongListTile extends StatelessWidget {
const SongListTile({
super.key,
required this.song,
this.coverArt,
this.showLeading = false,
this.onTap,
});
final Song song;
final String? coverArt;
final bool showLeading;
final void Function()? onTap;
@override
Widget build(BuildContext context) {
return ListTile(
// leading: CoverArtImage(
// coverArt: song.coverArt,
// thumbnail: true,
// ),
leading: showLeading
? CoverArtImage(
coverArt: coverArt,
thumbnail: true,
)
: null,
title: Text(song.title),
subtitle: Text(song.artist ?? ''),
onTap: onTap,