feat: theme switching.

This commit is contained in:
Aunali321
2022-08-12 00:35:03 +05:30
parent 3f45dd2db9
commit 4d0dcf407b
7 changed files with 104 additions and 50 deletions

View File

@ -2,18 +2,6 @@ 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();
}