form text field with label on top flutter code example
Example 1: text form field flutter
TextFormField(
decoration: InputDecoration(
labelText: 'Enter your username'
),
);
Example 2: text field outline flutter
TextField(
decoration: new InputDecoration(
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.greenAccent, width: 5.0),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.red, width: 5.0),
),
hintText: 'Mobile Number',
),