This commit is contained in:
Imran Remtulla
2022-11-02 20:23:40 -04:00
parent 9b99e2b302
commit 03da23f77a
3 changed files with 38 additions and 2 deletions

View File

@@ -123,6 +123,15 @@ class SettingsProvider with ChangeNotifier {
notifyListeners();
}
bool get pinUpdates {
return prefs?.getBool('pinUpdates') ?? true;
}
set pinUpdates(bool show) {
prefs?.setBool('pinUpdates', show);
notifyListeners();
}
String? getSettingString(String settingId) {
return prefs?.getString(settingId);
}