Update cart +/- button color

This commit is contained in:
Moe Poi ~ 2022-04-27 19:20:48 +07:00
parent 31e1c381b6
commit e9b36065b6

View file

@ -72,7 +72,10 @@ class _CartBoxState extends State<CartBox> {
onPressed: (){
widget.plus();
},
child: const Text("+")
child: const Text("+"),
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all<Color>(const Color(0xff8B0000)),
)
),
Text(widget.quantity.toString(),
style: const TextStyle(
@ -84,7 +87,10 @@ class _CartBoxState extends State<CartBox> {
onPressed: (){
widget.minus();
},
child: const Text("-")
child: const Text("-"),
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all<Color>(const Color(0xff8B0000)),
)
)
],
)