Sync cart box with flutter_lints v2.0.1

This commit is contained in:
Moe Poi ~ 2022-05-12 10:27:33 +07:00
parent 136cd4753e
commit cf32fa598f

View file

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