Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 谷歌登录后禁用转换_Android_Flutter_Dart_Google Signin - Fatal编程技术网

Android 谷歌登录后禁用转换

Android 谷歌登录后禁用转换,android,flutter,dart,google-signin,Android,Flutter,Dart,Google Signin,[固定] 当我在flatter中取消或使用googleSignIn()方法登录时,有一个转换我想禁用,因为它看起来像一个黑条掉落,我想禁用它 问题是这样的 这是我用于登录的代码: 类身份验证服务{ final FirebaseAuth _auth=FirebaseAuth.instance; 最终GoogleSignIn _GoogleSignIn=GoogleSignIn(); final Firestore _db=Firestore.instance; Future googleSignI

[固定]

当我在flatter中取消或使用googleSignIn()方法登录时,有一个转换我想禁用,因为它看起来像一个黑条掉落,我想禁用它

问题是这样的

这是我用于登录的代码:

类身份验证服务{
final FirebaseAuth _auth=FirebaseAuth.instance;
最终GoogleSignIn _GoogleSignIn=GoogleSignIn();
final Firestore _db=Firestore.instance;
Future googleSignIn()异步{
试一试{
final GoogleSignInAccount googleUser=wait_googleSignIn.signIn();
//如果用户取消了操作
if(googleUser==null)返回null;
最终谷歌签名认证=
等待googleUser.authentication;
final AuthCredential credential=GoogleAuthProvider.getCredential(
accessToken:googleAuth.accessToken,
idToken:googleAuth.idToken,
);
final AuthResult AuthResult=wait _auth.signin with credential(凭证);
最终FirebaseUser=authResult.user;
updateUserData(用户);
打印(“登录”+user.displayName);
返回_userFromFirebaseUser(用户);
}捕获(e){
打印(“出错:\n”+e.toString());
返回null;
}
}
编辑: 这个问题只发生在android仿真上。
当我在物理设备上运行它时,它运行得很好。

这似乎只是一些android模拟中的一个小故障,当我在物理设备上尝试它时,过渡并不存在。

最好在物理设备上验证一下,这真的发生了。这很奇怪。我认为这是由于谷歌的WebView状态栏。你能用dif验证它吗ferent device?>最好在物理设备上验证一下这是否真的发生,这样才能确认这是否发生在物理设备上