feat(flutter/player): mini PlayerBar in shell + tap-to-play wiring

PlayerBar reads playbackState + mediaItem streams; hidden when no
queue. Home track-row tap, album play button, album track tap, artist
play button (shuffle) all route to playerActions.playTracks. Token +
baseUrl forwarded to the audio handler before each new queue.
This commit is contained in:
2026-05-02 17:39:09 -04:00
parent 80f98b3243
commit bbfeb5d3ff
5 changed files with 73 additions and 5 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import '../auth/server_url_screen.dart';
import '../library/album_detail_screen.dart';
import '../library/artist_detail_screen.dart';
import '../library/home_screen.dart';
import '../player/player_bar.dart';
import 'widgets/version_gate.dart';
GoRouter buildRouter(Ref ref) {
@@ -53,10 +54,10 @@ class _ShellWithPlayerBar extends StatelessWidget {
final Widget child;
@override
Widget build(BuildContext context) {
// PlayerBar is wired in Task 18; this placeholder leaves the shell slot.
return Column(
children: [
Expanded(child: child),
const PlayerBar(),
],
);
}