mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-02 23:04:25 +02:00
21 lines
394 B
Dart
21 lines
394 B
Dart
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();
|
|
}
|
|
}
|