feat(player): Now Playing als Tab statt Push-Screen, Favoriten-Herz
- songToMediaItem trägt jetzt die Song-UUID in extras['songId'], damit Downstream-Code (Favoriten-Button, später Playback-History) den echten Song wiederfinden kann statt nur die file-URI zu haben - NowPlayingScreen: Schließen-Button entfernt (AppBar-leading), da der Screen jetzt als eigener Tab läuft statt gepusht zu werden - FavoriteButton für den aktuellen Song in die AppBar-Actions eingebaut, reaktiv über einen verschachtelten StreamBuilder<MediaItem?>; ohne gültige songId (z.B. nichts spielt) wird kein Button gerendert Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
62c65e8eca
commit
2712ace665
@@ -10,6 +10,7 @@ MediaItem songToMediaItem(Song s) => MediaItem(
|
||||
album: s.album,
|
||||
duration: s.durationMs != null ? Duration(milliseconds: s.durationMs!) : null,
|
||||
artUri: s.coverPath != null ? Uri.file(s.coverPath!) : null,
|
||||
extras: {'songId': s.id},
|
||||
);
|
||||
|
||||
/// Spielt [songs] ab [startIndex] ab.
|
||||
|
||||
Reference in New Issue
Block a user