fixes before build 3
This commit is contained in:
@@ -68,6 +68,15 @@ class AppSettings extends ChangeNotifier {
|
||||
catalogGeneration++;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
Future<void> wipeAllData() async {
|
||||
await repository.wipeAllData();
|
||||
darkMode = false;
|
||||
supermarkets = List<Supermarket>.from(kDefaultSupermarkets);
|
||||
catalogGeneration++;
|
||||
notifyListeners();
|
||||
await load();
|
||||
}
|
||||
}
|
||||
|
||||
class SettingsScope extends InheritedNotifier<AppSettings> {
|
||||
|
||||
Reference in New Issue
Block a user