-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[firebase_auth] PlatformException(ERROR_INVALID_EMAIL, The email address is badly formatted., null) #1760
Comments
I should just use trim function. Looks like that Solved! |
Did you figure out why? If user provides correct email it should not require trim. Was running into the same issue and trim solved it too. But this is very strange. |
Hello, |
Could this issue be reopened? |
@gibbieyh @vainas-brazdeikis , In my case, I am using tab to switch email text field to password field on an emulator. So, of course you can test it on an emulator/android/. If you use tab to switch fields, email text field value is contain a white space like 'test@gmail.com '. Because of white space my application throw this exception, I believe. Finally, I just using trim function to remove white space. I believe, My answer will remove your confuse! |
I am having the same problem, but removing the whitespaces isn't fixing it. Any other ideas on how to solve this problem |
You are a hero, thank you boss for solving this issue. |
Thank you so much. Just spent five hours trying to figure out why it wasn't working until I got to your response. I don't even understand why it would add a space if you hit tab. What sort of absurd reason could there be to add a space at the end of the field if someone hits tab in an emulator. |
Thank you for solution. |
Thank you for the solution. works for me when I add the trim |
Works me! Just adding .trim() to email. Thanks! |
Yeah trim() works!!! its probably due to the space which gets added sometimse after typing the email |
Can avoid adding a package or using .trim() by setting the textformfield type
|
Hello developers
that is my exception:
How to solve that issue?
The text was updated successfully, but these errors were encountered: