Skip to content

Commit

Permalink
update AddressTextFormField in setPayeePage
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeroYang committed Aug 19, 2022
1 parent b644a40 commit 07ac46c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions example/lib/pages/assetsContent.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:polkawallet_ui/components/borderedTitle.dart';
import 'package:polkawallet_ui/components/roundedCard.dart';
import 'package:polkawallet_sdk/plugin/index.dart';
import 'package:polkawallet_sdk/plugin/store/balances.dart';
import 'package:polkawallet_sdk/storage/keyring.dart';
import 'package:polkawallet_ui/components/borderedTitle.dart';
import 'package:polkawallet_ui/components/roundedCard.dart';
import 'package:polkawallet_ui/components/textTag.dart';
import 'package:polkawallet_ui/utils/consts.dart';
import 'package:polkawallet_ui/utils/format.dart';
Expand Down Expand Up @@ -65,7 +65,6 @@ class _AssetsContentState extends State<AssetsContent> {
'TestToken',
fontSize: 16,
color: PluginColorsDark.primary,
textColor: PluginColorsDark.headline1,
margin: EdgeInsets.only(left: 12),
padding: EdgeInsets.fromLTRB(8, 4, 8, 4),
))
Expand Down
5 changes: 3 additions & 2 deletions lib/pages/staking/actions/setPayeePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import 'package:polkawallet_sdk/storage/keyring.dart';
import 'package:polkawallet_sdk/storage/types/keyPairData.dart';
import 'package:polkawallet_sdk/utils/i18n.dart';
import 'package:polkawallet_ui/components/textTag.dart';
import 'package:polkawallet_ui/components/v3/addressTextFormField.dart';
import 'package:polkawallet_ui/components/v3/dialog.dart';
import 'package:polkawallet_ui/components/v3/plugin/pluginAddressFormItem.dart';
import 'package:polkawallet_ui/components/v3/plugin/pluginAddressTextFormField.dart';
import 'package:polkawallet_ui/components/v3/plugin/pluginInputItem.dart';
import 'package:polkawallet_ui/components/v3/plugin/pluginScaffold.dart';
import 'package:polkawallet_ui/components/v3/plugin/pluginTxButton.dart';
Expand Down Expand Up @@ -253,7 +253,7 @@ class _PayeeSelectorState extends State<PayeeSelector> {
visible: (_rewardTo ?? widget.initialValue!.destinationId) == 3,
child: Container(
margin: EdgeInsets.only(top: 12),
child: PluginAddressTextFormField(
child: AddressTextFormField(
widget.plugin.sdk.api,
widget.keyring.allWithContacts,
initialValue: _rewardAccount ?? defaultAcc,
Expand All @@ -264,6 +264,7 @@ class _PayeeSelectorState extends State<PayeeSelector> {
widget.onChange!(_rewardTo, acc.address);
},
key: ValueKey<KeyPairData?>(_rewardAccount),
isHubTheme: true,
),
),
),
Expand Down

0 comments on commit 07ac46c

Please sign in to comment.