Update trade_filter_store.dart

This commit is contained in:
GiMa-Maya 2024-11-01 16:15:19 +01:00 committed by GitHub
parent 686fa2ba0b
commit 110c08b9d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,7 @@ abstract class TradeFilterStoreBase with Store {
displayTrocador = true,
displayExolix = true,
displayThorChain = true,
displayMayaChain = true,
displayLetsExchange = true,
displayStealthEx = true;
@ -44,6 +45,9 @@ abstract class TradeFilterStoreBase with Store {
@observable
bool displayThorChain;
@observable
bool displayMayaChain;
@observable
bool displayLetsExchange;
@ -58,6 +62,7 @@ abstract class TradeFilterStoreBase with Store {
displayTrocador &&
displayExolix &&
displayThorChain &&
displayMayaChain &&
displayLetsExchange &&
displayStealthEx;
@ -88,6 +93,9 @@ abstract class TradeFilterStoreBase with Store {
case ExchangeProviderDescription.thorChain:
displayThorChain = !displayThorChain;
break;
case ExchangeProviderDescription.mayaChain:
displayMayaChain = !displayMayaChain;
break;
case ExchangeProviderDescription.letsExchange:
displayLetsExchange = !displayLetsExchange;
case ExchangeProviderDescription.stealthEx:
@ -103,6 +111,7 @@ abstract class TradeFilterStoreBase with Store {
displayTrocador = false;
displayExolix = false;
displayThorChain = false;
displayMayaChain = false;
displayLetsExchange = false;
displayStealthEx = false;
} else {
@ -114,6 +123,7 @@ abstract class TradeFilterStoreBase with Store {
displayTrocador = true;
displayExolix = true;
displayThorChain = true;
displayMayaChain = true;
displayLetsExchange = true;
displayStealthEx = true;
}
@ -143,6 +153,8 @@ abstract class TradeFilterStoreBase with Store {
(displayExolix && item.trade.provider == ExchangeProviderDescription.exolix) ||
(displayThorChain &&
item.trade.provider == ExchangeProviderDescription.thorChain) ||
(displayMayaChain &&
item.trade.provider == ExchangeProviderDescription.mayaChain) ||
(displayLetsExchange &&
item.trade.provider == ExchangeProviderDescription.letsExchange) ||
(displayStealthEx && item.trade.provider == ExchangeProviderDescription.stealthEx))