mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address (#880)
* CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * Delete widget_test.dart * fix: Revert unneeded changes made * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * fix: Requested changes * Update * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * fix: Filter address in address book * Update local branch * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address
This commit is contained in:
parent
315c4c911c
commit
8f16af4748
2 changed files with 5 additions and 2 deletions
|
@ -120,6 +120,7 @@ class ContactListPage extends BasePage {
|
||||||
if (isCopied) {
|
if (isCopied) {
|
||||||
await Clipboard.setData(ClipboardData(text: contact.address));
|
await Clipboard.setData(ClipboardData(text: contact.address));
|
||||||
await showBar<void>(context, S.of(context).copied_to_clipboard);
|
await showBar<void>(context, S.of(context).copied_to_clipboard);
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|
|
@ -406,7 +406,6 @@ class ExchangeCardState extends State<ExchangeCard> {
|
||||||
order: NumericFocusOrder(3),
|
order: NumericFocusOrder(3),
|
||||||
child: BaseTextFormField(
|
child: BaseTextFormField(
|
||||||
controller: addressController,
|
controller: addressController,
|
||||||
readOnly: true,
|
|
||||||
borderColor: Colors.transparent,
|
borderColor: Colors.transparent,
|
||||||
suffixIcon:
|
suffixIcon:
|
||||||
SizedBox(width: _isMoneroWallet ? 80 : 36),
|
SizedBox(width: _isMoneroWallet ? 80 : 36),
|
||||||
|
@ -433,7 +432,10 @@ class ExchangeCardState extends State<ExchangeCard> {
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
final contact =
|
final contact =
|
||||||
await Navigator.of(context)
|
await Navigator.of(context)
|
||||||
.pushNamed(Routes.pickerAddressBook);
|
.pushNamed(
|
||||||
|
Routes.pickerAddressBook,
|
||||||
|
arguments: widget.initialCurrency,
|
||||||
|
);
|
||||||
|
|
||||||
if (contact is ContactBase &&
|
if (contact is ContactBase &&
|
||||||
contact.address != null) {
|
contact.address != null) {
|
||||||
|
|
Loading…
Reference in a new issue