Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextFormField issue #128

Open
dgguarin20 opened this issue May 21, 2022 · 4 comments
Open

TextFormField issue #128

dgguarin20 opened this issue May 21, 2022 · 4 comments

Comments

@dgguarin20
Copy link

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

@Weav3r
Copy link

Weav3r commented Nov 4, 2022

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

@X-Wei
Copy link
Owner

X-Wei commented Nov 6, 2022

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

@Weav3r
Copy link

Weav3r commented Nov 21, 2022

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

@X-Wei
Copy link
Owner

X-Wei commented Sep 18, 2023

sure PRs are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants