From ace16e8b500f4b9d34c7f67fbc33d4915312750f Mon Sep 17 00:00:00 2001 From: Frederik Feichtmeier Date: Sat, 26 Oct 2024 20:04:59 +0200 Subject: [PATCH] fix: add track info in video play overlay (#983) --- lib/player/view/full_height_video_player.dart | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/player/view/full_height_video_player.dart b/lib/player/view/full_height_video_player.dart index 789931ef..c7fa7e38 100644 --- a/lib/player/view/full_height_video_player.dart +++ b/lib/player/view/full_height_video_player.dart @@ -30,6 +30,8 @@ class FullHeightVideoPlayer extends StatelessWidget with WatchItMixin { padding: EdgeInsets.zero, ); + final text = + '${audio?.title == null ? '' : '${audio!.title}'} - ${audio?.album == null ? '' : '${audio!.album}'} - ${audio?.artist == null ? '' : '${audio!.artist}'}'; final mediaKitTheme = MaterialVideoControlsThemeData( seekBarThumbColor: baseColor, seekBarColor: baseColor.withOpacity(0.3), @@ -62,7 +64,20 @@ class FullHeightVideoPlayer extends StatelessWidget with WatchItMixin { ), ), ], - bottomButtonBar: [], + bottomButtonBarMargin: const EdgeInsets.all(20), + bottomButtonBar: [ + Flexible( + child: Tooltip( + margin: const EdgeInsets.symmetric(horizontal: 20), + message: text, + child: Text( + text, + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: Colors.white), + ), + ), + ), + ], padding: const EdgeInsets.all(20), );