DEV Community

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

Collapse
 
mikulina profile image
Miku

Were you able to find a solution to this? I'm having the same problem right now. :/

Collapse
 
sai7xp profile image
Sumanth

Actually, that was because the null value is passed to the homescreen from the splashscreen(username). Fixed ✅✅ the error now. You can update the code as i updated the article.
Or else simply store the user details in localstorage using the SharedPreferences. It enables you to access the details even in offline mode.
I have commited the new changes to github. If you stuck anywhere look over github repo.