mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
"choose from stack" fixes
This commit is contained in:
parent
19789aacd3
commit
bcb8f2cd41
4 changed files with 11 additions and 7 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 0309140a95a51388df0effcc39ff0a25b2752b29
|
Subproject commit 9a150d8cd2c3625424b0059e6b7306f3659fdbe0
|
|
@ -1130,7 +1130,7 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
||||||
),
|
),
|
||||||
if (isStackCoin(selectedCrypto?.ticker))
|
if (isStackCoin(selectedCrypto?.ticker))
|
||||||
CustomTextButton(
|
CustomTextButton(
|
||||||
text: "Choose from stack",
|
text: "Choose from Stack",
|
||||||
onTap: () {
|
onTap: () {
|
||||||
try {
|
try {
|
||||||
final coin = coinFromTickerCaseInsensitive(
|
final coin = coinFromTickerCaseInsensitive(
|
||||||
|
@ -1153,7 +1153,11 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
||||||
_receiveAddressController.text =
|
_receiveAddressController.text =
|
||||||
await manager.currentReceivingAddress;
|
await manager.currentReceivingAddress;
|
||||||
|
|
||||||
setState(() {});
|
setState(() {
|
||||||
|
_addressToggleFlag =
|
||||||
|
_receiveAddressController.text.isNotEmpty;
|
||||||
|
});
|
||||||
|
validateAmount();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
|
|
|
@ -190,7 +190,7 @@ class _Step2ViewState extends ConsumerState<Step2View> {
|
||||||
),
|
),
|
||||||
if (isStackCoin(model.receiveTicker))
|
if (isStackCoin(model.receiveTicker))
|
||||||
CustomTextButton(
|
CustomTextButton(
|
||||||
text: "Choose from stack",
|
text: "Choose from Stack",
|
||||||
onTap: () {
|
onTap: () {
|
||||||
try {
|
try {
|
||||||
final coin =
|
final coin =
|
||||||
|
@ -449,7 +449,7 @@ class _Step2ViewState extends ConsumerState<Step2View> {
|
||||||
),
|
),
|
||||||
if (isStackCoin(model.sendTicker))
|
if (isStackCoin(model.sendTicker))
|
||||||
CustomTextButton(
|
CustomTextButton(
|
||||||
text: "Choose from stack",
|
text: "Choose from Stack",
|
||||||
onTap: () {
|
onTap: () {
|
||||||
try {
|
try {
|
||||||
final coin =
|
final coin =
|
||||||
|
|
|
@ -301,7 +301,7 @@ class _DesktopStep2State extends ConsumerState<DesktopStep2> {
|
||||||
if (isStackCoin(ref.watch(desktopExchangeModelProvider
|
if (isStackCoin(ref.watch(desktopExchangeModelProvider
|
||||||
.select((value) => value!.receiveTicker))))
|
.select((value) => value!.receiveTicker))))
|
||||||
CustomTextButton(
|
CustomTextButton(
|
||||||
text: "Choose from stack",
|
text: "Choose from Stack",
|
||||||
onTap: selectRecipientAddressFromStack,
|
onTap: selectRecipientAddressFromStack,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -433,7 +433,7 @@ class _DesktopStep2State extends ConsumerState<DesktopStep2> {
|
||||||
if (isStackCoin(ref.watch(desktopExchangeModelProvider
|
if (isStackCoin(ref.watch(desktopExchangeModelProvider
|
||||||
.select((value) => value!.sendTicker))))
|
.select((value) => value!.sendTicker))))
|
||||||
CustomTextButton(
|
CustomTextButton(
|
||||||
text: "Choose from stack",
|
text: "Choose from Stack",
|
||||||
onTap: selectRefundAddressFromStack,
|
onTap: selectRefundAddressFromStack,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue