default decoration flutter code example
Example 1: text form field flutter
TextFormField(
decoration: InputDecoration(
labelText: 'Enter your username'
),
);
Example 2: flutter 2 inputdecorations on same row
// This worked for me... Also can replace Expanded with Flexible see:
// https://stackoverflow.com/questions/52645944/flutter-expanded-vs-flexible
Row(
children: <Widget>[
Expanded(
child: Row(
children: <Widget>[
Expanded(
flex: 3,
child: TextField(
decoration: InputDecoration(
hintText: 'Time'),
),
),
Expanded(
flex: 4,
child: Text("(in mins)/"),
),
],
),
),
Expanded(
child: Row(
children: <Widget>[
Expanded(
flex: 3,
child: TextField(
decoration: InputDecoration(
hintText: 'Whistle'),
),
),
Expanded(
flex: 4,
child: Text("(whistles)"),
),
],
),
),
],
),