Notifications (android via local) work
This commit is contained in:
33
flutter/lib/settings/app_settings.dart
Normal file
33
flutter/lib/settings/app_settings.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AppSettings extends ChangeNotifier {
|
||||
bool groupNotifications = true;
|
||||
int messagePageSize = 128;
|
||||
bool showDebugButton = true;
|
||||
|
||||
static AppSettings? _singleton = AppSettings._internal();
|
||||
|
||||
factory AppSettings() {
|
||||
return _singleton ?? (_singleton = AppSettings._internal());
|
||||
}
|
||||
|
||||
AppSettings._internal() {
|
||||
load();
|
||||
}
|
||||
|
||||
void clear() {
|
||||
//TODO
|
||||
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void load() {
|
||||
//TODO
|
||||
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
Future<void> save() async {
|
||||
//TODO
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user