mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-18 16:53:56 +00: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();
|
|
}
|
|
}
|