WIP
This commit is contained in:
parent
5b1a122f62
commit
41b3a02027
|
@ -58,7 +58,13 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
||||||
drawerEnableOpenDragGesture: true,
|
drawerEnableOpenDragGesture: true,
|
||||||
drawerDragStartBehavior: DragStartBehavior.start,
|
drawerDragStartBehavior: DragStartBehavior.start,
|
||||||
drawer: CustomDrawer(model: _model),
|
drawer: CustomDrawer(model: _model),
|
||||||
appBar: AppBar(
|
appBar: buildAppBar(context),
|
||||||
|
body: buildPage(context),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
AppBar buildAppBar(BuildContext context) {
|
||||||
|
return AppBar(
|
||||||
backgroundColor: FlutterFlowTheme.of(context).primary,
|
backgroundColor: FlutterFlowTheme.of(context).primary,
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
leading: FlutterFlowIconButton(
|
leading: FlutterFlowIconButton(
|
||||||
|
@ -102,8 +108,6 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
||||||
actions: const [],
|
actions: const [],
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
elevation: 0.0,
|
elevation: 0.0,
|
||||||
),
|
|
||||||
body: buildPage(context),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,9 +33,9 @@ class StorageUtil {
|
||||||
|
|
||||||
StorageUtil._internal();
|
StorageUtil._internal();
|
||||||
|
|
||||||
late final SQLiteStorageHelper _sqliteStorage;
|
late SQLiteStorageHelper _sqliteStorage;
|
||||||
late final SecureStorageHelper _secureStorage;
|
late SecureStorageHelper _secureStorage;
|
||||||
late final SharedPreferencesStorageHelper _sharedPreferences;
|
late SharedPreferencesStorageHelper _sharedPreferences;
|
||||||
bool _initialized = true;
|
bool _initialized = true;
|
||||||
|
|
||||||
static Future<void> set(StorageData data) async {
|
static Future<void> set(StorageData data) async {
|
||||||
|
@ -122,6 +122,9 @@ class StorageUtil {
|
||||||
log('StorageUtil: Starting initialization');
|
log('StorageUtil: Starting initialization');
|
||||||
if (!_initialized) return true;
|
if (!_initialized) return true;
|
||||||
if (_initialized) await SharedPreferencesStorageHelper().initialize();
|
if (_initialized) await SharedPreferencesStorageHelper().initialize();
|
||||||
|
if (_initialized) _secureStorage = SecureStorageHelper();
|
||||||
|
if (_initialized) _sqliteStorage = SQLiteStorageHelper();
|
||||||
|
if (_initialized) _sqliteStorage = SQLiteStorageHelper();
|
||||||
await initSecureStorage();
|
await initSecureStorage();
|
||||||
await initSharedPreferences();
|
await initSharedPreferences();
|
||||||
await initSQLiteStorage();
|
await initSQLiteStorage();
|
||||||
|
|
Loading…
Reference in New Issue