feat: 将 NormalTheme 的背景颜色和状态栏颜色更新为白色

This commit is contained in:
Booker
2026-05-27 14:16:21 +07:00
parent 1f65b61337
commit 550b12a812
5 changed files with 10 additions and 6 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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),