我做了一个自定义的启动屏幕,但我不知道我是如何改变了应用程序淡出的方式?它会下降到设备的底部。我做的唯一一件事就是在AndroidManifest.xml中切换到半透明的主题
https://media.giphy.com/media/KDh7K2bLVLQNsj93ob/giphy.gif
我比较了一个全新的Flutter应用程序和相同的SDK,我能看到的唯一区别是:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Translucent.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>
vs
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>
谢谢。
发布于 2019-07-04 20:39:54
是的,就是这样。在styles.xml中将新的颤动应用程序切换到Theme.Translucent.NoTitleBar
会重现丢失。我只想摆脱黑吧!
谢谢你做我的rubber duck。
https://stackoverflow.com/questions/56877785
复制相似问题