diff --git a/lib/components/checkout_items.dart b/lib/components/checkout_items.dart index 46c757f..47e6f4c 100644 --- a/lib/components/checkout_items.dart +++ b/lib/components/checkout_items.dart @@ -23,7 +23,7 @@ class _CheckoutItemsState extends State<CheckoutItems> { totalPrice += product[0]['PRICE'] * x['quantity']; }); - return Future.delayed(const Duration(seconds: 5), () { + return Future.delayed(const Duration(seconds: 2), () { return totalPrice; }); } diff --git a/lib/components/transaction_box.dart b/lib/components/transaction_box.dart index 8a6834f..bdbcfe6 100644 --- a/lib/components/transaction_box.dart +++ b/lib/components/transaction_box.dart @@ -54,7 +54,7 @@ class _TransactionBoxState extends State<TransactionBox> { totalPrice += product[0]['PRICE'] * x['quantity']; }); - return Future.delayed(const Duration(seconds: 5), (){ + return Future.delayed(const Duration(seconds: 2), (){ return totalPrice; }); } diff --git a/lib/screens/cart.dart b/lib/screens/cart.dart index 233f08d..750e33a 100644 --- a/lib/screens/cart.dart +++ b/lib/screens/cart.dart @@ -27,7 +27,7 @@ class _CartState extends State<Cart> { totalPrice += product[0]['PRICE'] * x['quantity']; }); - return Future.delayed(const Duration(seconds: 5), () { + return Future.delayed(const Duration(seconds: 2), () { return totalPrice; }); }