fix: better handle exchange url launching

This commit is contained in:
OmarHatem
2025-10-31 15:00:33 +01:00
parent 3f9840233a
commit f5119d262a
4 changed files with 40 additions and 18 deletions
+5 -4
View File
@@ -148,7 +148,7 @@ class BuySellPage extends BasePage {
bottomSection: Observer(
builder: (_) => Column(
children: [
if (buySellViewModel.isBuySellQuotFailed)
if (buySellViewModel.isBuySellQuoteFailed)
Padding(
padding: EdgeInsets.only(bottom: 15),
child: Row(
@@ -166,7 +166,8 @@ class BuySellPage extends BasePage {
Expanded(
flex: 8,
child: Text(
S.of(context).buy_sell_pair_is_not_supported_warning,
buySellViewModel.buySellQuoteFailedError ??
S.of(context).buy_sell_pair_is_not_supported_warning,
textAlign: TextAlign.center,
softWrap: true,
overflow: TextOverflow.ellipsis,
@@ -188,9 +189,9 @@ class BuySellPage extends BasePage {
},
color: Theme.of(context).colorScheme.primary,
textColor: Theme.of(context).colorScheme.onPrimary,
isDisabled: buySellViewModel.isBuySellQuotFailed,
isDisabled: buySellViewModel.isBuySellQuoteFailed,
isLoading:
!buySellViewModel.isReadyToTrade && !buySellViewModel.isBuySellQuotFailed,
!buySellViewModel.isReadyToTrade && !buySellViewModel.isBuySellQuoteFailed,
),
],
),