From ad2973ef776645fb16d93486109a39223d080b26 Mon Sep 17 00:00:00 2001 From: Oliver Bagge Date: Mon, 18 Dec 2023 01:44:00 +0100 Subject: [PATCH] fix radio colors in audio player --- open_earable/lib/controls_tab/views/audio_player.dart | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/open_earable/lib/controls_tab/views/audio_player.dart b/open_earable/lib/controls_tab/views/audio_player.dart index 2f84c3f..f5224b4 100644 --- a/open_earable/lib/controls_tab/views/audio_player.dart +++ b/open_earable/lib/controls_tab/views/audio_player.dart @@ -220,14 +220,11 @@ class _AudioPlayerCardState extends State { 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; }), ); }