mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Added select server screen and add server screen
This commit is contained in:
parent
e1ff7a151d
commit
a97ae20631
22 changed files with 623 additions and 27 deletions
|
@ -1,8 +1,11 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:sqflite/sqlite_api.dart';
|
||||
|
||||
class AppConfigProvider with ChangeNotifier {
|
||||
Database? _dbInstance;
|
||||
|
||||
PackageInfo? _appInfo;
|
||||
AndroidDeviceInfo? _androidDeviceInfo;
|
||||
IosDeviceInfo? _iosDeviceInfo;
|
||||
|
@ -19,6 +22,10 @@ class AppConfigProvider with ChangeNotifier {
|
|||
return _iosDeviceInfo;
|
||||
}
|
||||
|
||||
void setDbInstance(Database db) {
|
||||
_dbInstance = db;
|
||||
}
|
||||
|
||||
void setAppInfo(PackageInfo appInfo) {
|
||||
_appInfo = appInfo;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue