Remove Onramper swap (#573)
It's not supported here, so removing to avoid confusion
Justin Ehrenhofer committed
Oct 28, 2022 at 11:21 UTC
12e7b455207a764a0b1119e794ae045270b15e8e
1 file changed
+6
-2
lib/src/screens/buy/onramper_page.dart
+6
-2
@@ -28,7 +28,8 @@ class OnRamperPage extends BasePage {
28
backgroundColor: darkMode
29
? backgroundDarkColor
30
: backgroundLightColor,
31
- supportSell: false);
31
+ supportSell: false,
32
+ supportSwap: false);
33
}
34
}
35
@@ -38,6 +39,7 @@ class OnRamperPageBody extends StatefulWidget {
39
required this.wallet,
40
required this.darkMode,
41
required this.supportSell,
42
+ required this.supportSwap,
43
required this.backgroundColor});
44
45
static const baseUrl = 'widget.onramper.com';
@@ -46,6 +48,7 @@ class OnRamperPageBody extends StatefulWidget {
48
final Color backgroundColor;
49
final bool darkMode;
50
final bool supportSell;
51
+ final bool supportSwap;
52
53
Uri get uri
54
=> Uri.https(
@@ -57,7 +60,8 @@ class OnRamperPageBody extends StatefulWidget {
60
'defaultFiat': settingsStore.fiatCurrency.title,
61
'wallets': '${wallet.currency.title}:${wallet.walletAddresses.address}',
62
'darkMode': darkMode.toString(),
60
- 'supportSell': supportSell.toString()});
63
+ 'supportSell': supportSell.toString(),
64
+ 'supportSwap': supportSwap.toString()});
65
66
@override
67
OnRamperPageBodyState createState() => OnRamperPageBodyState();