Navidrome-Integration, Widgets (Recent + Tag-Statistik)
This commit is contained in:
@@ -9,6 +9,7 @@ class SongTile extends StatelessWidget {
|
||||
final ValueChanged<Song> onFavoriteToggle;
|
||||
final ValueChanged<Song> onPlay;
|
||||
final VoidCallback onMetadataChanged;
|
||||
final ValueChanged<Song>? onAddToPlaylist;
|
||||
|
||||
const SongTile({
|
||||
super.key,
|
||||
@@ -51,6 +52,15 @@ class SongTile extends StatelessWidget {
|
||||
child: Icon(Icons.edit, size: 14, color: MeloTheme.textSekundaer),
|
||||
),
|
||||
),
|
||||
if (onAddToPlaylist != null)
|
||||
InkWell(
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
onTap: () => onAddToPlaylist!(song),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(6),
|
||||
child: const Icon(Icons.playlist_add, size: 14, color: MeloTheme.textSekundaer),
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
onTap: () => onFavoriteToggle(song),
|
||||
|
||||
Reference in New Issue
Block a user