Update cart +/- button color
This commit is contained in:
parent
31e1c381b6
commit
e9b36065b6
1 changed files with 8 additions and 2 deletions
|
@ -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)),
|
||||
)
|
||||
)
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue