Skip to content

Commit

Permalink
fix radio colors in audio player
Browse files Browse the repository at this point in the history
  • Loading branch information
o-bagge committed Dec 18, 2023
1 parent 3b7423d commit ad2973e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions open_earable/lib/controls_tab/views/audio_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,11 @@ class _AudioPlayerCardState extends State<AudioPlayerCard> {
OpenEarableSettings().selectedAudioPlayerRadio = value ?? 0;
});
},
activeColor: !_openEarable.bleManager.connected
? Colors.grey
: Theme.of(context).colorScheme.secondary,
fillColor: MaterialStateProperty.resolveWith((states) {
if (states.contains(MaterialState.disabled)) {
return Colors.grey;
if (states.contains(MaterialState.selected)) {
return Theme.of(context).colorScheme.secondary;
}
return Theme.of(context).colorScheme.secondary;
return Colors.grey;
}),
);
}
Expand Down

0 comments on commit ad2973e

Please sign in to comment.