Created
February 17, 2020 08:32
-
-
Save PeterHdd/27ad6f081d5f178c16b91a9ce3bb787b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
child: TextFormField( | |
controller: nameController, | |
decoration: InputDecoration( | |
labelText: "Enter Pet Name", | |
enabledBorder: OutlineInputBorder( | |
borderRadius: BorderRadius.circular(10.0), | |
), | |
), | |
// The validator receives the text that the user has entered. | |
validator: (value) { | |
if (value.isEmpty) { | |
return 'Enter Pet Name'; | |
} | |
return null; | |
}, | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment