Start hive integration
This commit is contained in:
parent
be01b23901
commit
1e728418a1
|
@ -56,3 +56,6 @@ packages/dubp_rs/lib/ffi.dart
|
|||
/target
|
||||
|
||||
pubkeys.txt
|
||||
|
||||
# Linux builds
|
||||
linux/
|
||||
|
|
|
@ -28,6 +28,7 @@ import 'package:flutter/cupertino.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:gecko/screens/myWallets/walletsHome.dart';
|
||||
import 'package:graphql_flutter/graphql_flutter.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:responsive_framework/responsive_framework.dart';
|
||||
|
@ -47,6 +48,10 @@ Future<void> main() async {
|
|||
// _walletsProvider.getDefaultWallet();
|
||||
appVersion = await _homeProvider.getAppVersion();
|
||||
prefs = await SharedPreferences.getInstance();
|
||||
|
||||
Hive.init(appPath.path);
|
||||
await Hive.openBox("walletBox");
|
||||
|
||||
// final HiveStore _store =
|
||||
// await HiveStore.open(path: '${appPath.path}/gqlCache');
|
||||
|
||||
|
|
|
@ -349,12 +349,12 @@ packages:
|
|||
source: hosted
|
||||
version: "5.0.0"
|
||||
hive:
|
||||
dependency: transitive
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: hive
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0"
|
||||
version: "2.0.4"
|
||||
http:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
|
|
@ -51,6 +51,7 @@ dependencies:
|
|||
sdk: flutter
|
||||
test: ^1.17.10
|
||||
unorm_dart: ^0.2.0
|
||||
hive: ^2.0.4
|
||||
|
||||
flutter_icons:
|
||||
android: "ic_launcher"
|
||||
|
|
Loading…
Reference in New Issue