Prevent black band running down the screen?

ⅰ亾dé卋堺 提交于 2020-07-22 22:50:11

问题


Logging in using [this] package causing the following behaviour. I think the darkening of the screen is expected but it's the ungraceful departure that is the problem..

I don't get an error..but this appears on the console.

W/ActivityThread(31387): handleWindowVisibility: no activity for token android.os.BinderProxy@a1edd0f

My code is the recommended code for the plugin.

void loginWithGoogle() async {
    var auth = AuthProvider.of(context).auth;

    print('Signing up with google...');
    setState(() {
      _showProgressIndicator = true;
    });
    FirebaseUser user = await auth.signInWithGoogleAcc();
    uId = user.uid;

    if (uId != null) {
      print('Signed in: $uId');
      widget.onSignedIn(user);
    } else {
      print('google login cancelled...');
    }

    setState(() {
      _showProgressIndicator = false;
    });
  }

This is happening on an android device.

来源:https://stackoverflow.com/questions/54945622/prevent-black-band-running-down-the-screen

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