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