Merge branch 'CW-438-add-nano' of https://github.com/cake-tech/cake_wallet into CW-459-12-words-btc

This commit is contained in:
fosse 2023-08-18 12:16:59 -04:00
commit 1e9001114e
6 changed files with 8 additions and 16 deletions

View file

@ -11,15 +11,12 @@ import 'package:cw_nano/nano_util.dart';
import 'package:flutter/services.dart';
import 'package:http/http.dart' as http;
import 'package:nanodart/nanodart.dart';
import 'package:web3dart/web3dart.dart';
import 'package:web3dart/contracts/erc20.dart';
import 'package:cw_core/node.dart';
class NanoClient {
static const String DEFAULT_REPRESENTATIVE =
"nano_38713x95zyjsqzx6nm1dsom1jmm668owkeb9913ax6nfgj15az3nu8xkx579";
StreamSubscription<Transfer>? subscription;
Node? _node;
PowNode? _powNode;
@ -434,9 +431,7 @@ class NanoClient {
throw UnimplementedError();
}
void stop() {
subscription?.cancel();
}
void stop() {}
Future<List<NanoTransactionModel>> fetchTransactions(String address) async {
try {

View file

@ -12,7 +12,6 @@ environment:
dependencies:
flutter:
sdk: flutter
web3dart: 2.3.5
mobx: ^2.0.7+4
bip39: ^1.0.6
bip32: ^2.0.0
@ -21,7 +20,7 @@ dependencies:
libcrypto: ^0.2.2
ed25519_hd_key: ^2.2.0
hex: ^0.2.0
http: ^0.13.4
http: ^1.1.0
cw_core:
path: ../cw_core

View file

@ -93,7 +93,7 @@ class NanoChangeRepPage extends BasePage {
}
},
text: S.of(context).change,
color: Theme.of(context).accentTextTheme.bodyLarge!.color!,
color: Theme.of(context).primaryColor,
textColor: Colors.white,
),
)),

View file

@ -54,7 +54,7 @@ class NanoAccountEditOrCreatePage extends BasePage {
text: nanoAccountCreationViewModel.isEdit
? S.of(context).rename
: S.of(context).add,
color: Theme.of(context).accentTextTheme!.bodyLarge!.color!,
color: Theme.of(context).primaryColor,
textColor: Colors.white,
isLoading: nanoAccountCreationViewModel.state is IsExecutingState,
isDisabled: nanoAccountCreationViewModel.label?.isEmpty ?? true,

View file

@ -185,10 +185,7 @@ class PowNodeCreateOrEditPage extends BasePage {
Navigator.of(context).pop();
},
text: S.of(context).save,
color: Theme.of(context)
.accentTextTheme!
.bodyLarge!
.color!,
color: Theme.of(context).primaryColor,
textColor: Colors.white,
isDisabled: (!nodeCreateOrEditViewModel.isReady)||
(nodeCreateOrEditViewModel

View file

@ -1,6 +1,7 @@
import 'package:cake_wallet/routes.dart';
import 'package:cake_wallet/src/screens/nodes/widgets/node_indicator.dart';
import 'package:cake_wallet/src/widgets/standard_list.dart';
import 'package:cake_wallet/themes/extensions/filter_theme.dart';
import 'package:cake_wallet/themes/extensions/receive_page_theme.dart';
import 'package:cw_core/pow_node.dart';
import 'package:flutter/material.dart';
@ -52,8 +53,8 @@ class PowNodeHeaderListRow extends StandardListRow {
Widget buildTrailing(BuildContext context) {
return SizedBox(
width: 20,
child:
Icon(Icons.add, color: Theme.of(context).accentTextTheme!.titleMedium!.color, size: 24.0),
child: Icon(Icons.add,
color: Theme.of(context).extension<FilterTheme>()!.titlesColor, size: 24.0),
);
}
}