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

大憨熊 提交于 2020-12-12 04:15:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!