mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-01-23 10:39:33 +00:00
Update theme settings in app_settings_provider.dart
This commit is contained in:
parent
8d71020436
commit
74e0d77cf9
10 changed files with 239 additions and 65 deletions
|
|
@ -44,7 +44,8 @@ class AppSettings extends _$AppSettings {
|
|||
}
|
||||
|
||||
void toggleDarkMode() {
|
||||
state = state.copyWith(isDarkMode: !state.isDarkMode);
|
||||
state = state.copyWith
|
||||
.themeSettings(isDarkMode: !state.themeSettings.isDarkMode);
|
||||
}
|
||||
|
||||
void updateState(model.AppSettings newSettings) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue