mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-23 03:05:11 +00:00
more merge fixes
This commit is contained in:
parent
d1fc0a5bbd
commit
611f346ea8
5 changed files with 7 additions and 14 deletions
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
)),
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue