fix: opravit iOS vzhled + burzu #41

Merged
hernik merged 3 commits from fix-iosvzhled into main 2023-09-12 22:38:56 +02:00
Showing only changes of commit 7a310515bc - Show all commits

View file

@ -130,9 +130,16 @@ class _MealViewState extends State<MealView> {
: "${j.cena}"), : "${j.cena}"),
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(