feat: wip settings screen.

This commit is contained in:
Aunali321
2022-08-10 18:00:28 +05:30
parent 63f43806ae
commit 3f45dd2db9
7 changed files with 176 additions and 7 deletions

View File

@ -0,0 +1,20 @@
import 'package:stacked/stacked.dart';
class SettingsViewModel extends BaseViewModel {
bool isDarkMode = true;
bool isDynamicColors = false;
void toggleDynamicColors() {
isDynamicColors = !isDynamicColors;
notifyListeners();
}
void toggleTheme() {
isDarkMode = !isDarkMode;
notifyListeners();
}
void setLanguage(String language) {
notifyListeners();
}
}