From eed67c691429d66e4988e7086fb9edff05406a3a Mon Sep 17 00:00:00 2001 From: Hitesh Ale Date: Sun, 26 Feb 2023 17:24:20 -0500 Subject: [PATCH] killme --- lib/buy.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/buy.dart b/lib/buy.dart index 7eb550d..48c7fe3 100644 --- a/lib/buy.dart +++ b/lib/buy.dart @@ -773,10 +773,11 @@ class _BuyScreenState extends State { // add close button ElevatedButton( onPressed: () async { + Navigator.pop(context); try { // 1. create payment intent on the server - - var Ddata = await http.get(Uri.parse('http://172.20.10.2:5000/payment-sheet?price=50')); + int price = (SellerPrice*100).toInt(); + var Ddata = await http.get(Uri.parse("http://172.20.10.2:5000/payment-sheet?price=" + price.toString())); var data = jsonDecode(Ddata.body); print("wtf");