This commit is contained in:
M
2020-05-26 18:27:10 +03:00
parent 8c6b99da42
commit b605a98811
27 changed files with 586 additions and 246 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import 'package:cake_wallet/src/domain/common/crypto_currency.dart';
part 'contact.g.dart';
@HiveType()
@HiveType(typeId: 0)
class Contact extends HiveObject {
Contact({@required this.name, @required this.address, CryptoCurrency type})
: raw = type?.raw;
+1 -1
View File
@@ -3,7 +3,7 @@ import 'package:hive/hive.dart';
part 'crypto_currency.g.dart';
@HiveType()
@HiveType(typeId: 0)
class CryptoCurrency extends EnumerableItem<int> with Serializable<int> {
const CryptoCurrency({final String title, final int raw})
: super(title: title, raw: raw);
+1 -1
View File
@@ -6,7 +6,7 @@ import 'package:cake_wallet/src/domain/common/digest_request.dart';
part 'node.g.dart';
@HiveType()
@HiveType(typeId: 1)
class Node extends HiveObject {
Node({@required this.uri, this.login, this.password});
+1 -1
View File
@@ -7,7 +7,7 @@ Future<String> presentQRScanner() async {
try {
final result = await BarcodeScanner.scan();
isQrScannerShown = false;
return result;
return result.rawContent;
} catch (e) {
isQrScannerShown = false;
rethrow;
+1 -1
View File
@@ -3,7 +3,7 @@ import 'package:hive/hive.dart';
part 'wallet_info.g.dart';
@HiveType()
@HiveType(typeId: 4)
class WalletInfo extends HiveObject {
WalletInfo(
{this.id, this.name, this.type, this.isRecovery, this.restoreHeight});
+1 -1
View File
@@ -4,7 +4,7 @@ part 'wallet_type.g.dart';
const walletTypes = [WalletType.monero, WalletType.bitcoin];
@HiveType()
@HiveType(typeId: 5)
enum WalletType {
@HiveField(0)
monero,