问题
I have my code as following for Google Sign in:
// google sign in
GoogleSignIn _googleSignIn = GoogleSignIn(
scopes: [
'email',
],
);
final GoogleSignInAccount googleUser = await _googleSignIn.signIn();
final GoogleSignInAuthentication googleAuth =
await googleUser.authentication;
// get firebase user
final AuthCredential credential = GoogleAuthProvider.getCredential(
accessToken: googleAuth.accessToken, idToken: googleAuth.idToken);
firebaseUser = (await _firebaseAuth.signInWithCredential(credential)).user;
After a user signs in successfully thru Google, I will see a solid thick black line running from top to bottom of the screen. I have attached two screenshots to prove it here. Any idea on getting rid of it?
来源:https://stackoverflow.com/questions/62970628/flutter-google-sign-in-caused-a-black-line-running-across-screen