Fixed bugs: overflows on location view, made location view scrollable

This commit is contained in:
Konstantin Kollar
2022-09-06 12:53:53 +02:00
parent e93dc0f771
commit 9f4b99c5f9
4 changed files with 52 additions and 43 deletions
+21 -20
View File
@@ -45,26 +45,27 @@ class AddLocationsFormState extends State<AddLocationsForm> {
return Form(
key: _formKey,
child: Column(children: [
Flexible(
flex: 4,
child: TextFormField(
//Location Name
onSaved: (input) {
newLocationName = input;
},
controller: locationFormController,
validator: ((value) {
if (value == null || value.isEmpty) {
return "Please enter a name for the new location";
}
if (widget.savedLocations.contains(value)) {
return "Location name already in use";
}
return null;
}),
decoration: const InputDecoration(
border: UnderlineInputBorder(), labelText: "Location Name"),
)),
// Flexible(
// flex: 4,
// child:
TextFormField(
//Location Name
onSaved: (input) {
newLocationName = input;
},
controller: locationFormController,
validator: ((value) {
if (value == null || value.isEmpty) {
return "Please enter a name for the new location";
}
if (widget.savedLocations.contains(value)) {
return "Location name already in use";
}
return null;
}),
decoration: const InputDecoration(
border: UnderlineInputBorder(), labelText: "Location Name"),
),
Row(
crossAxisAlignment: CrossAxisAlignment.end,
children: [