Swap + and - button in cart page
This commit is contained in:
parent
bef1ca8862
commit
d24e477686
1 changed files with 4 additions and 4 deletions
|
@ -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)),
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue