Skip to content

Commit

Permalink
player: no title, better fallback color (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier authored Dec 30, 2023
1 parent 416766c commit 3ce073b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 0 additions & 2 deletions lib/src/player/bottom_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class BottomPlayer extends StatelessWidget {
required this.setFullScreen,
required this.audio,
required this.width,
this.color,
required this.playPrevious,
required this.playNext,
required this.liked,
Expand All @@ -36,7 +35,6 @@ class BottomPlayer extends StatelessWidget {

final Audio? audio;
final double width;
final Color? color;

final Future<void> Function() playPrevious;
final Future<void> Function() playNext;
Expand Down
7 changes: 2 additions & 5 deletions lib/src/player/full_height_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class FullHeightPlayer extends StatelessWidget {
required this.addStarredStation,
required this.removeLikedAudio,
required this.addLikedAudio,
this.color,
required this.setFullScreen,
required this.playerViewMode,
required this.onTextTap,
Expand All @@ -48,8 +47,6 @@ class FullHeightPlayer extends StatelessWidget {
final void Function(Audio audio, bool notify) removeLikedAudio;
final void Function(Audio audio, bool notify) addLikedAudio;

final Color? color;

final void Function(bool?) setFullScreen;

final PlayerViewMode playerViewMode;
Expand Down Expand Up @@ -195,8 +192,8 @@ class FullHeightPlayer extends StatelessWidget {
children: [
if (!isMobile)
HeaderBar(
title: Text(
audio?.title ?? '',
title: const Text(
'',
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
Expand Down
4 changes: 1 addition & 3 deletions lib/src/player/player_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class _PlayerViewState extends State<PlayerView> {
final c = context.select((PlayerModel m) => m.color);
final color = getPlayerBg(
c,
theme.isLight ? kCardColorLight : theme.scaffoldBackgroundColor,
theme.isLight ? kCardColorLight : kCardColorDark,
);
final setFullScreen = playerModel.setFullScreen;
final playPrevious = playerModel.playPrevious;
Expand Down Expand Up @@ -91,7 +91,6 @@ class _PlayerViewState extends State<PlayerView> {
setFullScreen: setFullScreen,
nextAudio: nextAudio,
audio: audio,
color: color,
playPrevious: playPrevious,
playNext: playNext,
liked: liked,
Expand All @@ -115,7 +114,6 @@ class _PlayerViewState extends State<PlayerView> {
setFullScreen: setFullScreen,
audio: audio,
width: width,
color: color,
playPrevious: playPrevious,
playNext: playNext,
liked: liked,
Expand Down

0 comments on commit 3ce073b

Please sign in to comment.