diff --git a/lib/screens/excursion/excursion_main.dart b/lib/screens/excursion/excursion_main.dart index 3156060..4c9fc00 100644 --- a/lib/screens/excursion/excursion_main.dart +++ b/lib/screens/excursion/excursion_main.dart @@ -263,7 +263,6 @@ class _ExcursionMainState extends State { // ---------- Bima number const Divider(), const SizedBox(height: 10), - ClipRRect( borderRadius: BorderRadius.all(Radius.circular(10)), child: ExpansionPanelList( diff --git a/lib/screens/excursion/widgets/hinweise.dart b/lib/screens/excursion/widgets/hinweise.dart index a9a4d2d..401d060 100644 --- a/lib/screens/excursion/widgets/hinweise.dart +++ b/lib/screens/excursion/widgets/hinweise.dart @@ -48,17 +48,18 @@ class _HinweiseState extends State { widget.hinweise.text = ""; for (String key in props.keys) { - if (!firstRun) { - widget.hinweise.text += ";"; + if (!firstRun && props[key]!) { + widget.hinweise.text += ","; } if (key == "sonstiges") { - widget.hinweise.text += "$key:${sonstigesController.text}"; - } else { - widget.hinweise.text += "$key:${props[key]}"; + widget.hinweise.text += sonstigesController.text; + } else if (props[key]!){ + widget.hinweise.text += key; } firstRun = false; } + debugPrint(widget.hinweise.text); } @override @@ -97,7 +98,8 @@ class _HinweiseState extends State { title: Text(AppLocalizations.of(context)!.sonstiges), value: sonstigesChecked, onChanged: (bool? value) { - setState(() => sonstigesChecked = value ?? false); + if (!value!) sonstigesController.text = ""; + setState(() => sonstigesChecked = value); updateController(); }), if (sonstigesChecked)