diff options
author | Scott Murray <scott.murray@konsulko.com> | 2024-01-23 15:51:45 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2024-01-23 16:40:09 -0500 |
commit | cc99d4d772be6635639a0d398076a8890f4e6a42 (patch) | |
tree | db3b41545c94337b43421bab00b829181fdbf57d /lib/presentation/screens/media/radio_preset_table.dart | |
parent | ee592b5048543951f712c0abb997a6e97c036544 (diff) |
Connect audio settings button
Rework to connect the audio settings button on the media pages
to the appropriate settings page, and have the back button go
back to the expected previous page. To enable this, the global
AppState provider was reworked to track the previous page and add
explicit update and back member functions.
Bug-AGL: SPEC-5030
Change-Id: I5858d1b1bf511a184b6538b2ce8c183b00c24fc6
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'lib/presentation/screens/media/radio_preset_table.dart')
-rw-r--r-- | lib/presentation/screens/media/radio_preset_table.dart | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/presentation/screens/media/radio_preset_table.dart b/lib/presentation/screens/media/radio_preset_table.dart index 97affb8..fcf8e2b 100644 --- a/lib/presentation/screens/media/radio_preset_table.dart +++ b/lib/presentation/screens/media/radio_preset_table.dart @@ -64,6 +64,9 @@ class _RadioPresetTableState extends ConsumerState<RadioPresetTable> { onTap: () { setState(() { isAudioSettingsEnabled = !isAudioSettingsEnabled; + ref + .read(appProvider.notifier) + .update(AppState.audioSettings); }); }, child: Padding( |