flutter_catalog
flutter_catalog copied to clipboard
TextFormField issue
First thanks for the app it has been really helpful. Now knowing that the app focus is to help people know on how to add some features flutter provides, in TextFormField where the user imputs the email it will be for the best to add an email verification if the user imputed a correct email format, maybe use the email validator package as an example. Finally for salary even if I can only imput number I can copy letters and paste them as a salary. This error can be seen in the image below.
Those examples do not demonstrate validation but rather how to change the 'keyboard type' for the appropriate field by using: TextInputType.emailAddress,
TextInputType.number,
TextInputType.phone, etc.
If you need validation there is one way (there are other ways) given under the Widgets->TextField shown below:
thanks for raising this! do you mind sending a pull request? thanks!
@X-Wei Sorry for the late reply. Do you think adding validation will be appropriate? I think it will a bit more complexity to the code but if you think otherwise, I'll add validation and send a pull request.
sure PRs are welcome!