mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Added add client to lists
This commit is contained in:
parent
9f248d18a1
commit
6b51102dd2
8 changed files with 350 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue