

Container(
margin: EdgeInsets.fromLTRB(15, 0, 15, 0),
child: Row(
children: <Widget>[
Expanded(
flex: 1,
child: FormField<String>(
builder: (FormFieldState<String> state) {
return InputDecorator(
decoration: InputDecoration(
errorStyle: TextStyle(
color: Colors.redAccent,
fontSize: 16.0,
),
labelText: "Year :",
labelStyle: TextStyle(
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: 18,
),
fillColor: Colors.white,
filled: true,
contentPadding: EdgeInsets.all(15),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: Colors.grey,
style: BorderStyle.solid,
width: 1,
),
),
errorText: (!showYearError) ? null : _enteredYearValidation(),
),
child: TextFormField(
autocorrect: false,
controller: yearTextController,
keyboardType: TextInputType.number,
decoration: InputDecoration.collapsed(
hintText: " ",
),
),
);
},
)),
SizedBox(
width: 12,
),
Expanded(
flex: 1,
child: FormField<String>(
builder: (FormFieldState<String> state) {
return InputDecorator(
decoration: InputDecoration(
errorStyle: TextStyle(
color: Colors.redAccent,
fontSize: 16.0
),
labelText: "Mileage :",
labelStyle: TextStyle(
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: 18,
),
fillColor: Colors.white,
filled: true,
hintText: 'Please select expense',
contentPadding: EdgeInsets.all(15),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: Colors.grey,
style: BorderStyle.solid,
width: 1,
),
),
),
child: TextFormField(
autocorrect: false,
keyboardType: TextInputType.number,
decoration: InputDecoration.collapsed(
hintText: "",
),
),
);
},
)),
],
),
),--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/223fd01c-1c27-4528-bd63-170d351a1c84%40googlegroups.com.