From bcb8f2cd413f706a206fb7e363acad1428b29865 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 31 Jan 2023 08:41:40 -0600 Subject: [PATCH] "choose from stack" fixes --- crypto_plugins/flutter_libepiccash | 2 +- lib/pages/buy_view/buy_form.dart | 8 ++++++-- .../exchange_view/exchange_step_views/step_2_view.dart | 4 ++-- .../exchange_steps/subwidgets/desktop_step_2.dart | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/crypto_plugins/flutter_libepiccash b/crypto_plugins/flutter_libepiccash index 0309140a9..9a150d8cd 160000 --- a/crypto_plugins/flutter_libepiccash +++ b/crypto_plugins/flutter_libepiccash @@ -1 +1 @@ -Subproject commit 0309140a95a51388df0effcc39ff0a25b2752b29 +Subproject commit 9a150d8cd2c3625424b0059e6b7306f3659fdbe0 diff --git a/lib/pages/buy_view/buy_form.dart b/lib/pages/buy_view/buy_form.dart index 30bd05106..feea9579d 100644 --- a/lib/pages/buy_view/buy_form.dart +++ b/lib/pages/buy_view/buy_form.dart @@ -1130,7 +1130,7 @@ class _BuyFormState extends ConsumerState { ), if (isStackCoin(selectedCrypto?.ticker)) CustomTextButton( - text: "Choose from stack", + text: "Choose from Stack", onTap: () { try { final coin = coinFromTickerCaseInsensitive( @@ -1153,7 +1153,11 @@ class _BuyFormState extends ConsumerState { _receiveAddressController.text = await manager.currentReceivingAddress; - setState(() {}); + setState(() { + _addressToggleFlag = + _receiveAddressController.text.isNotEmpty; + }); + validateAmount(); } }); } catch (e, s) { diff --git a/lib/pages/exchange_view/exchange_step_views/step_2_view.dart b/lib/pages/exchange_view/exchange_step_views/step_2_view.dart index 081709c31..86db9171a 100644 --- a/lib/pages/exchange_view/exchange_step_views/step_2_view.dart +++ b/lib/pages/exchange_view/exchange_step_views/step_2_view.dart @@ -190,7 +190,7 @@ class _Step2ViewState extends ConsumerState { ), if (isStackCoin(model.receiveTicker)) CustomTextButton( - text: "Choose from stack", + text: "Choose from Stack", onTap: () { try { final coin = @@ -449,7 +449,7 @@ class _Step2ViewState extends ConsumerState { ), if (isStackCoin(model.sendTicker)) CustomTextButton( - text: "Choose from stack", + text: "Choose from Stack", onTap: () { try { final coin = diff --git a/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_2.dart b/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_2.dart index c959e0f45..c4371d4e8 100644 --- a/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_2.dart +++ b/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_2.dart @@ -301,7 +301,7 @@ class _DesktopStep2State extends ConsumerState { if (isStackCoin(ref.watch(desktopExchangeModelProvider .select((value) => value!.receiveTicker)))) CustomTextButton( - text: "Choose from stack", + text: "Choose from Stack", onTap: selectRecipientAddressFromStack, ), ], @@ -433,7 +433,7 @@ class _DesktopStep2State extends ConsumerState { if (isStackCoin(ref.watch(desktopExchangeModelProvider .select((value) => value!.sendTicker)))) CustomTextButton( - text: "Choose from stack", + text: "Choose from Stack", onTap: selectRefundAddressFromStack, ), ],