DEV Community

Discussion on: Flutter - Firebase Google Sign-in Auth + SplashScreen using updated API

Collapse
 
iamnikhilpardeshi profile image
Nikhil Pardeshi

Sir, first time the program is run without error. Bt second time I open this app show error In home screen. Invalid arguments. What to do??

Collapse
 
sai7xp profile image
Sumanth

Still, If you find any issues comment the error. And let me know if error is solved

Collapse
 
sai7xp profile image
Sumanth

Hey Nikhil, thank you for noticing and pointing out the error. (fixed error now)
Cause for error : When the user enters home screen second time it fails to retrieve the name,imageUrl some other details because we haven't stored user details globally.
Anyway, I've fixed the issue and updated the article.
If you found this article useful sharing is highly appreciated. Twitter : @movingmelody :)

Collapse
 
iamnikhilpardeshi profile image
Nikhil Pardeshi

Sir how to resolve these error. Becz I'm beginner in Flutter.

Thread Thread
 
sai7xp profile image
Sumanth

I've updated the code in the article or you can find the code in GitHub repo. Go through the code again. Your error will solve.

Thread Thread
 
iamnikhilpardeshi profile image
Nikhil Pardeshi

Ok sir.