mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
redirect to order and close dialog
except the dialog doesn't close.
This commit is contained in:
parent
9a0de2e7f6
commit
c8f843c38c
1 changed files with 9 additions and 2 deletions
|
@ -45,9 +45,16 @@ class BuyWarningPopup extends StatelessWidget {
|
|||
label: "Continue",
|
||||
onPressed: () async {
|
||||
BuyResponse<SimplexOrder> order = await newOrder(quote);
|
||||
// BuyResponse<bool> response =
|
||||
// await redirect(order.value as SimplexOrder);
|
||||
// // TODO save order
|
||||
// Navigator.of(context, rootNavigator: isDesktop).pop;
|
||||
BuyResponse<bool> response =
|
||||
await redirect(order.value as SimplexOrder);
|
||||
// TODO save order and redirect
|
||||
await redirect(order.value as SimplexOrder).then((order) {
|
||||
// TODO save order
|
||||
Navigator.of(context, rootNavigator: isDesktop).pop;
|
||||
return order;
|
||||
});
|
||||
},
|
||||
),
|
||||
icon: SizedBox(
|
||||
|
|
Loading…
Reference in a new issue