fix: vzhled checkboxu

This commit is contained in:
Matyáš Caras 2023-09-12 22:37:43 +02:00
parent 490d12e8ef
commit 7a310515bc
Signed by untrusted user who does not match committer: hernik
GPG key ID: 2A3175F98820C5C6

View file

@ -130,9 +130,16 @@ class _MealViewState extends State<MealView> {
: "${j.cena}"),
Checkbox(
value: j.objednano,
fillColor: (j.lzeObjednat)
side: BorderSide(
width: 2,
color: (j.lzeObjednat)
? (Colors.purple)
: (Colors.grey)),
fillColor: (j.lzeObjednat && j.objednano)
? MaterialStateProperty.all(Colors.purple)
: MaterialStateProperty.all(Colors.grey),
: (j.objednano)
? MaterialStateProperty.all(Colors.grey)
: MaterialStateProperty.all(Colors.transparent),
onChanged: (v) async {
if (!j.lzeObjednat) {
showDialog(