redirect to order and close dialog

except the dialog doesn't close.
This commit is contained in:
sneurlax 2023-01-20 10:36:46 -06:00
parent 9a0de2e7f6
commit c8f843c38c

View file

@ -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(