mirror of
https://github.com/wownero/cyberwow.git
synced 2026-12-03 13:43:59 +01:00
use black screen on startup
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user