Skip to content

Instantly share code, notes, and snippets.

@TobiCrackIT
Last active April 3, 2020 15:08
Show Gist options
  • Save TobiCrackIT/38f8ee2785b716472e0ac8e0b11ca033 to your computer and use it in GitHub Desktop.
Save TobiCrackIT/38f8ee2785b716472e0ac8e0b11ca033 to your computer and use it in GitHub Desktop.
Container(
child: Column(
children: <Widget>[
TextFormField(
maxLines: 1,
obscureText: false,
autovalidate: false,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w400,
color: Color(0xFF1F2933),
),
decoration: InputDecoration(
labelText: label,
fillColor: Colors.white,
filled: true,
labelStyle: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w400,
color: Colors.black,
),
hasFloatingPlaceholder: false,
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: Color(0xFFCBD2D9),
width: 1,
)),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(
color:
Colors.green,
width: 1,
style: BorderStyle.solid)),
contentPadding: EdgeInsets.all(16),
),
),
Visibility(
visible: isError,
child: Padding(
padding: const EdgeInsets.only(top:8.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Icon(
Icons.info,
color: Colors.red,
size: 18,
),
SizedBox(width: 2),
],
),
),
)
],
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment