mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-01-02 00:09:31 +00:00
feat: implement per book settings with player configuration and update methods
This commit is contained in:
parent
fd42ee2343
commit
e7dd4de515
19 changed files with 1030 additions and 20 deletions
|
|
@ -36,7 +36,7 @@ class AutoSleepTimerSettingsPage extends HookConsumerWidget {
|
|||
? const Icon(Icons.timer)
|
||||
: const Icon(Icons.timer_off),
|
||||
onToggle: (value) {
|
||||
ref.read(appSettingsProvider.notifier).updateState(
|
||||
ref.read(appSettingsProvider.notifier).update(
|
||||
appSettings.copyWith.playerSettings.sleepTimerSettings(
|
||||
autoTurnOnTimer: value,
|
||||
),
|
||||
|
|
@ -59,7 +59,7 @@ class AutoSleepTimerSettingsPage extends HookConsumerWidget {
|
|||
sleepTimerSettings.autoTurnOnTime.toTimeOfDay(),
|
||||
);
|
||||
if (selected != null) {
|
||||
ref.read(appSettingsProvider.notifier).updateState(
|
||||
ref.read(appSettingsProvider.notifier).update(
|
||||
appSettings.copyWith.playerSettings
|
||||
.sleepTimerSettings(
|
||||
autoTurnOnTime: selected.toDuration(),
|
||||
|
|
@ -87,7 +87,7 @@ class AutoSleepTimerSettingsPage extends HookConsumerWidget {
|
|||
sleepTimerSettings.autoTurnOffTime.toTimeOfDay(),
|
||||
);
|
||||
if (selected != null) {
|
||||
ref.read(appSettingsProvider.notifier).updateState(
|
||||
ref.read(appSettingsProvider.notifier).update(
|
||||
appSettings.copyWith.playerSettings
|
||||
.sleepTimerSettings(
|
||||
autoTurnOffTime: selected.toDuration(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue