use black screen on startup

This commit is contained in:
fuwa
2019-11-17 13:16:02 +08:00
parent 4db0006756
commit 1b0f7d3f51
2 changed files with 5 additions and 7 deletions
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar.Fullscreen">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:windowBackground">@android:color/black</item>
</style>
</resources>
+3 -5
View File
@@ -50,6 +50,9 @@ void main() {
class CyberWOW_App extends StatelessWidget {
@override
Widget build(BuildContext context) {
SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom]);
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
return MaterialApp
(
title: 'CyberWOW',
@@ -179,11 +182,6 @@ class _CyberWOW_PageState extends State<CyberWOW_Page> with WidgetsBindingObserv
WidgetsBinding.instance.addObserver(this);
SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom]);
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark.copyWith(
statusBarColor: Colors.black,
));
final BlankState _blankState = BlankState(_setState, _getNotification, _isExiting);
_state = _blankState;