Fixed bugs: overflows on location view, made location view scrollable
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user