Added add client to lists

This commit is contained in:
Juan Gilsanz Polo 2022-09-29 23:12:24 +02:00
parent 9f248d18a1
commit 6b51102dd2
8 changed files with 350 additions and 4 deletions

View file

@ -13,6 +13,8 @@ class AppConfigProvider with ChangeNotifier {
int _selectedTheme = 0;
int _selectedClientsTab = 0;
PackageInfo? get getAppInfo {
return _appInfo;
}
@ -47,6 +49,9 @@ class AppConfigProvider with ChangeNotifier {
return _selectedTheme;
}
int get selectedClientsTab {
return _selectedClientsTab;
}
void setDbInstance(Database db) {
_dbInstance = db;
@ -64,6 +69,11 @@ class AppConfigProvider with ChangeNotifier {
_iosDeviceInfo = deviceInfo;
}
void setSelectedClientsTab(int tab) {
_selectedClientsTab = tab;
notifyListeners();
}
Future<bool> setSelectedTheme(int value) async {
final updated = await _updateThemeDb(value);
if (updated == true) {