Created
June 19, 2019 13:27
-
-
Save bettdouglas/f32a010409d431665c08ffb047de33fc 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
Widget build(BuildContext context) { | |
return TextFormField( | |
controller: widget.controller, | |
keyboardType: keyBoardType(widget.type), | |
validator: (str)=>validator(str), ///this is a function which returns the error message we defined using the validator object | |
decoration: InputDecoration( | |
hintText: widget.hint, | |
labelText: widget.label, | |
helperText: widget.hint, | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment