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č"),
|
: "${j.cena} Kč"),
|
||||||
Checkbox(
|
Checkbox(
|
||||||
value: j.objednano,
|
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.purple)
|
||||||
: MaterialStateProperty.all(Colors.grey),
|
: (j.objednano)
|
||||||
|
? MaterialStateProperty.all(Colors.grey)
|
||||||
|
: MaterialStateProperty.all(Colors.transparent),
|
||||||
onChanged: (v) async {
|
onChanged: (v) async {
|
||||||
if (!j.lzeObjednat) {
|
if (!j.lzeObjednat) {
|
||||||
showDialog(
|
showDialog(
|
||||||
|
|
Reference in a new issue