Skip to content

Commit

Permalink
fix: add track info in video play overlay (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier authored Oct 26, 2024
1 parent c29c80d commit ace16e8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lib/player/view/full_height_video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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),
);

Expand Down

0 comments on commit ace16e8

Please sign in to comment.