Move to plugins🐱🎉

This commit is contained in:
Gregory Velichko
2024-04-14 18:40:32 +03:00
parent fb06babb96
commit 7b882d9bd8
17 changed files with 141 additions and 484 deletions

View File

@@ -82,6 +82,15 @@ class SettingsProvider with ChangeNotifier {
notifyListeners();
}
bool get pretendToBeGooglePlay{
return prefs?.getBool('pretendToBeGooglePlay') ?? false;
}
set pretendToBeGooglePlay(bool pretendToBeGooglePlay) {
prefs?.setBool('pretendToBeGooglePlay', pretendToBeGooglePlay);
notifyListeners();
}
ThemeSettings get theme {
return ThemeSettings
.values[prefs?.getInt('theme') ?? ThemeSettings.system.index];