signInWithGoogle().whenComplete is triggered whether or not the login succeeds #8
Comments
sign_in_flutter/lib/login_page.dart Line 56 in 5ad9067
however your issue is potentially unrelated and could occur because the user metadata does not contain a picture URL (presumably triggered here - sign_in_flutter/lib/first_screen.dart Line 44 in 5ad9067
|
Same error i can't return in login screen with crediential of google accont.... idea? |
a bit hard to say especially not seeing the actual logs for the error (from the Run tab or Logcat). try commenting out the whole section using Image.network here - sign_in_flutter/lib/first_screen.dart Lines 42 to 48 in 5ad9067
|
Authentication good i retrive link of my photo and name and email..but still have problem.. A non-null String must be provided to a Text widget. |
This problem still exists. I guess providing a FutureBuilder can solve the issue. If anyone knows how to solve this, please help. |
I have fixed this issue. Please check out the latest master branch of this repo. Refer: ad503dc Closing |
which seems to be the expected behaviour of whenComplete:
"Registers a function to be called when this future completes.
The [action] function is called when this future completes, whether it does so with a value or with an error."
changing the signInWithGoogle() to return the user and then rewriting as follows seems to do the trick:
The text was updated successfully, but these errors were encountered: