From d24e477686382f2209241b86238fb8acb8154a96 Mon Sep 17 00:00:00 2001 From: Moe <moe@chocola.dev> Date: Sat, 30 Apr 2022 09:52:54 +0700 Subject: [PATCH] Swap + and - button in cart page --- lib/components/cart_box.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/components/cart_box.dart b/lib/components/cart_box.dart index 45abcff..3f3d50a 100644 --- a/lib/components/cart_box.dart +++ b/lib/components/cart_box.dart @@ -80,9 +80,9 @@ class _CartBoxState extends State<CartBox> { children: [ ElevatedButton( onPressed: (){ - widget.plus(); + widget.minus(); }, - child: const Text("+"), + child: const Text("-"), style: ButtonStyle( backgroundColor: MaterialStateProperty.all<Color>(const Color(0xff8B0000)), ) @@ -95,9 +95,9 @@ class _CartBoxState extends State<CartBox> { ), ElevatedButton( onPressed: (){ - widget.minus(); + widget.plus(); }, - child: const Text("-"), + child: const Text("+"), style: ButtonStyle( backgroundColor: MaterialStateProperty.all<Color>(const Color(0xff8B0000)), )