Flutter: Google sign in caused a black line running across screen

Viewed 143

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?

enter image description here

enter image description here

0 Answers
Related