This commit is contained in:
Hitesh Ale
2023-02-26 17:32:16 -05:00
parent eed67c6914
commit 9efce3ae85

View File

@@ -773,7 +773,7 @@ class _BuyScreenState extends State<BuyScreen> {
// add close button // add close button
ElevatedButton( ElevatedButton(
onPressed: () async { onPressed: () async {
Navigator.pop(context);
try { try {
// 1. create payment intent on the server // 1. create payment intent on the server
int price = (SellerPrice*100).toInt(); int price = (SellerPrice*100).toInt();
@@ -806,7 +806,7 @@ class _BuyScreenState extends State<BuyScreen> {
} }
await Stripe.instance.presentPaymentSheet(); await Stripe.instance.presentPaymentSheet();
Navigator.pop(context);
}, },
child: Text( child: Text(