简体   繁体   English

关闭 Google 登录时从上到下出现黑色条纹 - Flutter

[英]Black stripe from top to bottom when Google Sign In dismissed - Flutter

I am having problem when using Google Sign In option in my application.在我的应用程序中使用 Google 登录选项时遇到问题。 The sign in process works fine, but whenever Google pop up is dismissed, black stripe moves from the top to the bottom of the screen.登录过程运行良好,但每当 Google 弹出窗口被关闭时,黑条就会从屏幕顶部移动到底部。 I am not getting any errors and it does not effect the functionality, but I want to remove it.我没有收到任何错误,它不会影响功能,但我想删除它。

I found the same issue on StackOverflow and GitHub, but I could not solve the problem.我在 StackOverflow 和 GitHub 上发现了同样的问题,但我无法解决问题。 Here are links to the issues I have found:以下是我发现的问题的链接:

  1. Screen flickers after Google Sign In dialog dismiss android studio Google 登录对话框关闭 android 工作室后屏幕闪烁

  2. Prevent black band running down the screen? 防止黑带跑到屏幕上?

  3. https://github.com/flutter/flutter/issues/28882 https://github.com/flutter/flutter/issues/28882

Anyone has an idea how to solve it?任何人都知道如何解决它?

just change style.xml property.只需更改 style.xml 属性。 Replace with this line:替换为这一行:

< style name="LaunchTheme" parent="@android:style/Theme.Translucent.NoTitleBar">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM