begin dog section
This commit is contained in:
@@ -113,5 +113,7 @@
|
|||||||
"gaststreitkraefte": "Gaststreitkräfte",
|
"gaststreitkraefte": "Gaststreitkräfte",
|
||||||
"nneBund": "NNE Bund",
|
"nneBund": "NNE Bund",
|
||||||
"geschaeftsliegenschaftAGV": "Geschäftsliegenschaft/AGV",
|
"geschaeftsliegenschaftAGV": "Geschäftsliegenschaft/AGV",
|
||||||
"kein": "Kein"
|
"kein": "Kein",
|
||||||
|
"mHund": "Hund dabei",
|
||||||
|
"mLeine": "Mit Leine"
|
||||||
}
|
}
|
||||||
@@ -557,14 +557,19 @@
|
|||||||
"kein": "None",
|
"kein": "None",
|
||||||
"@kein": {
|
"@kein": {
|
||||||
"description": "BIMA kein radiobutton"
|
"description": "BIMA kein radiobutton"
|
||||||
|
},
|
||||||
|
|
||||||
|
"mHund": "With dog",
|
||||||
|
"@mHund": {
|
||||||
|
"description": "mHund radiobutton"
|
||||||
|
},
|
||||||
|
|
||||||
|
"mLeine": "With Dog leash",
|
||||||
|
"@mLeine": {
|
||||||
|
"description": "mLeine radiobutten"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -25,8 +25,8 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
"Teilnehm": TextEditingController(),
|
"Teilnehm": TextEditingController(),
|
||||||
"Jahr": TextEditingController(),
|
"Jahr": TextEditingController(),
|
||||||
"Dauer": TextEditingController(),
|
"Dauer": TextEditingController(),
|
||||||
"HundDabei": TextEditingController(),
|
"MHund": TextEditingController(),
|
||||||
"MitLeine": TextEditingController(),
|
"MLeine": TextEditingController(),
|
||||||
"BLand": TextEditingController(),
|
"BLand": TextEditingController(),
|
||||||
"Lkr": TextEditingController(),
|
"Lkr": TextEditingController(),
|
||||||
"BeiOrt": TextEditingController(),
|
"BeiOrt": TextEditingController(),
|
||||||
@@ -75,6 +75,12 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
// Hund u Leine
|
||||||
|
|
||||||
|
const SizedBox(
|
||||||
|
height: 10,
|
||||||
|
),
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["BLand"]!,
|
textController: getTextFields()["BLand"]!,
|
||||||
localization: AppLocalizations.of(context)!.bland,
|
localization: AppLocalizations.of(context)!.bland,
|
||||||
|
|||||||
92
lib/screens/Excursion/widgets/hund_u_leine.dart
Normal file
92
lib/screens/Excursion/widgets/hund_u_leine.dart
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
|
|
||||||
|
class HundULeine extends StatefulWidget {
|
||||||
|
final Function(String) onMHundChanged;
|
||||||
|
|
||||||
|
const HundULeine({super.key, required this.onMHundChanged});
|
||||||
|
|
||||||
|
@override
|
||||||
|
HundULeineState createState() => HundULeineState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class HundULeineState extends State<HundULeine> {
|
||||||
|
String? _selectedValue;
|
||||||
|
TextEditingController controller = TextEditingController();
|
||||||
|
bool visible = false;
|
||||||
|
|
||||||
|
void onChanged(String mHund, String name, String mLeine) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Column(
|
||||||
|
children: [
|
||||||
|
Text(AppLocalizations.of(context)!.mHund),
|
||||||
|
ListTile(
|
||||||
|
visualDensity: const VisualDensity(vertical: -4),
|
||||||
|
title: Text(AppLocalizations.of(context)!.ja),
|
||||||
|
leading: Radio<String>(
|
||||||
|
value: "ja",
|
||||||
|
groupValue: _selectedValue,
|
||||||
|
onChanged: (value) {
|
||||||
|
setState(() {
|
||||||
|
_selectedValue = value;
|
||||||
|
visible = value == "ja" ? true : false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
ListTile(
|
||||||
|
visualDensity: const VisualDensity(vertical: -4),
|
||||||
|
title: Text(AppLocalizations.of(context)!.nein),
|
||||||
|
leading: Radio<String>(
|
||||||
|
value: "nein",
|
||||||
|
groupValue: _selectedValue,
|
||||||
|
onChanged: (value) {
|
||||||
|
setState(() {
|
||||||
|
_selectedValue = value;
|
||||||
|
visible = value == "ja" ? true : false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (visible) ...[
|
||||||
|
TextField(
|
||||||
|
controller: controller,
|
||||||
|
),
|
||||||
|
Text(AppLocalizations.of(context)!.mLeine),
|
||||||
|
ListTile(
|
||||||
|
visualDensity: const VisualDensity(vertical: -4),
|
||||||
|
title: Text(AppLocalizations.of(context)!.ja),
|
||||||
|
leading: Radio<String>(
|
||||||
|
value: "ja",
|
||||||
|
groupValue: _selectedValue,
|
||||||
|
onChanged: (value) {
|
||||||
|
setState(() {
|
||||||
|
_selectedValue = value;
|
||||||
|
widget.onMHundChanged(value!);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
ListTile(
|
||||||
|
visualDensity: const VisualDensity(vertical: -4),
|
||||||
|
title: Text(AppLocalizations.of(context)!.nein),
|
||||||
|
leading: Radio<String>(
|
||||||
|
value: "nein",
|
||||||
|
groupValue: _selectedValue,
|
||||||
|
onChanged: (value) {
|
||||||
|
setState(() {
|
||||||
|
_selectedValue = value;
|
||||||
|
widget.onMHundChanged(value!);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
0
lib/screens/Excursion/widgets/hund_u_leine.dart~
Normal file
0
lib/screens/Excursion/widgets/hund_u_leine.dart~
Normal file
Reference in New Issue
Block a user