fix: vzhled checkboxu
This commit is contained in:
parent
490d12e8ef
commit
7a310515bc
1 changed files with 9 additions and 2 deletions
|
@ -130,9 +130,16 @@ class _MealViewState extends State<MealView> {
|
|||
: "${j.cena} Kč"),
|
||||
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(
|
||||
|
|
Reference in a new issue