mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-31 06:58:42 +01:00
Cw 1611 fetch moon pay payment methods from their api (#3565)
* add payment method api * add payment method limits * Update lib/buy/moonpay/moonpay_provider.dart * fix MoonPay payment method handling * Handle custom MoonPay payment methods * fix limits when max is infinite [skip ci] --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
@@ -41,8 +41,7 @@ abstract class SelectOptionsPage extends BasePage {
|
||||
String get title => pageTitle;
|
||||
|
||||
@override
|
||||
Widget body(BuildContext context) {
|
||||
return ScrollableWithBottomSection(
|
||||
Widget body(BuildContext context) => ScrollableWithBottomSection(
|
||||
content: BodySelectOptionsPage(
|
||||
currentTheme: currentTheme,
|
||||
items: items,
|
||||
@@ -81,7 +80,6 @@ abstract class SelectOptionsPage extends BasePage {
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class BodySelectOptionsPage extends StatefulWidget {
|
||||
@@ -131,8 +129,7 @@ class _BodySelectOptionsPageState extends State<BodySelectOptionsPage> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Center(
|
||||
Widget build(BuildContext context) => Center(
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 350),
|
||||
child: Column(
|
||||
@@ -191,5 +188,4 @@ class _BodySelectOptionsPageState extends State<BodySelectOptionsPage> {
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user