begin with using one widget for all the text fields
This commit is contained in:
@@ -256,7 +256,7 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
child: Text(AppLocalizations.of(context)!.template)),
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
saveFile();
|
||||
saveData();
|
||||
_httpRequest();
|
||||
Navigator.pushNamedAndRemoveUntil(
|
||||
// ignore: use_build_context_synchronously
|
||||
@@ -412,7 +412,12 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
children: [
|
||||
Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: Standort(standortC: standortC),
|
||||
child: RequiredVarTextField(
|
||||
required: true,
|
||||
dbName: "Standort",
|
||||
textController: standortC,
|
||||
localization: AppLocalizations.of(context)!.altstort,
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 1,
|
||||
@@ -447,6 +452,7 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
});
|
||||
},
|
||||
),
|
||||
RequiredVarTextField(textController: betreuungC, localization: AppLocalizations.of(context)!.betreuung, dbName: "KontSum", required: false),
|
||||
Betreuung(betreuungC: betreuungC),
|
||||
const SizedBox(
|
||||
height: 20,
|
||||
@@ -510,7 +516,7 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
],
|
||||
)),
|
||||
|
||||
// Second step
|
||||
// Second step
|
||||
Step(
|
||||
title: Text(AppLocalizations.of(context)!.secondstep),
|
||||
content: Column(
|
||||
@@ -699,7 +705,7 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
))
|
||||
];
|
||||
|
||||
// Here the site is built inclusive the steps from above
|
||||
// Here the site is built with the steps from above
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text(AppLocalizations.of(context)!.addplace)),
|
||||
body: PageTransitionSwitcher(
|
||||
|
||||
Reference in New Issue
Block a user