Added "Group by Category" setting

This commit is contained in:
Imran Remtulla
2023-03-30 23:40:32 -04:00
parent 814e269d1d
commit 4e17bbcfd1
13 changed files with 118 additions and 16 deletions

View File

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