flutter_catalog icon indicating copy to clipboard operation
flutter_catalog copied to clipboard

TextFormField issue

Open dgguarin20 opened this issue 2 years ago • 4 comments

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.

image

dgguarin20 avatar May 21 '22 04:05 dgguarin20

Those examples do not demonstrate validation but rather how to change the 'keyboard type' for the appropriate field by using: TextInputType.emailAddress,

re_1

TextInputType.number, re_2

TextInputType.phone, etc. re_3

If you need validation there is one way (there are other ways) given under the Widgets->TextField shown below: re_4 re_5

Weav3r avatar Nov 04 '22 09:11 Weav3r

thanks for raising this! do you mind sending a pull request? thanks!

X-Wei avatar Nov 06 '22 15:11 X-Wei

@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.

Weav3r avatar Nov 21 '22 12:11 Weav3r

sure PRs are welcome!

X-Wei avatar Sep 18 '23 16:09 X-Wei