mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-25 11:03:55 +01:00
CWA-218 | made editable address fields on exchange an exchange template pages; changed "Switch to 6-digit PIN" to "Use 6-digit PIN"; removed "Buy" button; made send and exchange button more transparent in the light mode
This commit is contained in:
@@ -62,14 +62,6 @@ class ButtonHeader extends SliverPersistentHeaderDelegate {
|
||||
route: Routes.exchange
|
||||
)
|
||||
),
|
||||
Flexible(
|
||||
child: actionButton(
|
||||
context: context,
|
||||
image: buyImage,
|
||||
title: S.of(context).buy,
|
||||
route: ''
|
||||
)
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -33,8 +33,10 @@ abstract class ExchangeStoreBase with Store {
|
||||
provider = initialProvider;
|
||||
depositCurrency = initialDepositCurrency;
|
||||
receiveCurrency = initialReceiveCurrency;
|
||||
isDepositAddressEnabled = !(depositCurrency == walletStore.type);
|
||||
isReceiveAddressEnabled = !(receiveCurrency == walletStore.type);
|
||||
/*isDepositAddressEnabled = !(depositCurrency == walletStore.type);
|
||||
isReceiveAddressEnabled = !(receiveCurrency == walletStore.type);*/
|
||||
isDepositAddressEnabled = true;
|
||||
isReceiveAddressEnabled = true;
|
||||
depositAmount = '';
|
||||
receiveAmount = '';
|
||||
depositAddress = '';
|
||||
@@ -107,16 +109,16 @@ abstract class ExchangeStoreBase with Store {
|
||||
void changeDepositCurrency({CryptoCurrency currency}) {
|
||||
depositCurrency = currency;
|
||||
_onPairChange();
|
||||
isDepositAddressEnabled = !(depositCurrency == walletStore.type);
|
||||
isReceiveAddressEnabled = !(receiveCurrency == walletStore.type);
|
||||
/*isDepositAddressEnabled = !(depositCurrency == walletStore.type);
|
||||
isReceiveAddressEnabled = !(receiveCurrency == walletStore.type);*/
|
||||
}
|
||||
|
||||
@action
|
||||
void changeReceiveCurrency({CryptoCurrency currency}) {
|
||||
receiveCurrency = currency;
|
||||
_onPairChange();
|
||||
isDepositAddressEnabled = !(depositCurrency == walletStore.type);
|
||||
isReceiveAddressEnabled = !(receiveCurrency == walletStore.type);
|
||||
/*isDepositAddressEnabled = !(depositCurrency == walletStore.type);
|
||||
isReceiveAddressEnabled = !(receiveCurrency == walletStore.type);*/
|
||||
}
|
||||
|
||||
@action
|
||||
@@ -240,8 +242,8 @@ abstract class ExchangeStoreBase with Store {
|
||||
receiveCurrency = CryptoCurrency.btc;
|
||||
depositAddress = depositCurrency == walletStore.type ? walletStore.address : '';
|
||||
receiveAddress = receiveCurrency == walletStore.type ? walletStore.address : '';
|
||||
isDepositAddressEnabled = !(depositCurrency == walletStore.type);
|
||||
isReceiveAddressEnabled = !(receiveCurrency == walletStore.type);
|
||||
/*isDepositAddressEnabled = !(depositCurrency == walletStore.type);
|
||||
isReceiveAddressEnabled = !(receiveCurrency == walletStore.type);*/
|
||||
_onPairChange();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user