From 98195c2ae296330e8965e8c054f50d94631f250e Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Thu, 4 Apr 2024 09:14:51 -0700 Subject: [PATCH] minor fixes --- assets/images/meld_light.svg | 1 - lib/buy/meld/meld_provider.dart | 14 +++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 assets/images/meld_light.svg diff --git a/assets/images/meld_light.svg b/assets/images/meld_light.svg deleted file mode 100644 index 8fa80c378..000000000 --- a/assets/images/meld_light.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/lib/buy/meld/meld_provider.dart b/lib/buy/meld/meld_provider.dart index 0777c5659..8024777e5 100644 --- a/lib/buy/meld/meld_provider.dart +++ b/lib/buy/meld/meld_provider.dart @@ -15,17 +15,15 @@ class MeldProvider extends BuyProvider { required SettingsStore settingsStore, required WalletBase wallet, bool isTestEnvironment = false, - }) : baseSellUrl = isTestEnvironment ? _baseSellTestUrl : _baseSellProductUrl, - baseBuyUrl = isTestEnvironment ? _baseBuyTestUrl : _baseBuyProductUrl, + }) : baseSellUrl = isTestEnvironment ? _baseTestUrl : _baseProductUrl, + baseBuyUrl = isTestEnvironment ? _baseTestUrl : _baseProductUrl, this._settingsStore = settingsStore, super(wallet: wallet, isTestEnvironment: isTestEnvironment); final SettingsStore _settingsStore; - static const _baseSellTestUrl = 'sb.fluidmoney.xyz'; - static const _baseSellProductUrl = 'fluidmoney.xyz'; - static const _baseBuyTestUrl = 'sb.fluidmoney.xyz'; - static const _baseBuyProductUrl = 'fluidmoney.xyz'; + static const _baseTestUrl = 'sb.fluidmoney.xyz'; + static const _baseProductUrl = 'fluidmoney.xyz'; final String baseBuyUrl; final String baseSellUrl; @@ -45,12 +43,10 @@ class MeldProvider extends BuyProvider { String get lightIcon => 'assets/images/meld_dark.png'; @override - String get darkIcon => 'assets/images/meld_dark.png'; + String get darkIcon => lightIcon; String get currencyCode => walletTypeToCryptoCurrency(wallet.type).title.toLowerCase(); - static String get _exchangeHelperApiKey => secrets.exchangeHelperApiKey; - static String convertTheme(ThemeBase theme) { switch (theme.type) { case ThemeType.bright: