Last active
April 3, 2020 15:08
-
-
Save TobiCrackIT/38f8ee2785b716472e0ac8e0b11ca033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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