feat: 将 NormalTheme 的背景颜色和状态栏颜色更新为白色
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
</style>
|
||||
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
<item name="android:windowBackground">@android:color/white</item>
|
||||
<item name="android:statusBarColor">@android:color/white</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
<item name="android:windowBackground">@android:color/white</item>
|
||||
<item name="android:statusBarColor">@android:color/white</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
</style>
|
||||
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
<item name="android:windowBackground">@android:color/white</item>
|
||||
<item name="android:statusBarColor">@android:color/white</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
<item name="android:windowBackground">@android:color/white</item>
|
||||
<item name="android:statusBarColor">@android:color/white</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -19,7 +19,7 @@ Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
SystemChrome.setSystemUIOverlayStyle(
|
||||
const SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent,
|
||||
statusBarColor: Colors.white,
|
||||
statusBarIconBrightness: Brightness.dark,
|
||||
systemNavigationBarColor: _shellBackground,
|
||||
systemNavigationBarIconBrightness: Brightness.dark,
|
||||
@@ -76,7 +76,7 @@ class ImWebViewApp extends StatelessWidget {
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFF1F6FEB)),
|
||||
scaffoldBackgroundColor: _shellBackground,
|
||||
scaffoldBackgroundColor: Colors.white,
|
||||
useMaterial3: true,
|
||||
),
|
||||
home: H5ShellPage(initialShellBranding: shellBranding),
|
||||
|
||||
Reference in New Issue
Block a user