From 2b34b6c8b6f071a15511e6894af06e2529112163 Mon Sep 17 00:00:00 2001 From: lxh2875931338 Date: Sun, 5 Jul 2026 01:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=8C=E6=99=AF=E8=89=B2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/src/main/AndroidManifest.xml | 30 ++++++++++++---------- android/app/src/main/res/values/styles.xml | 21 +++++---------- lib/pages/battery_health_page.dart | 12 ++++++--- pubspec.yaml | 2 +- 4 files changed, 32 insertions(+), 33 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 15dc0cc..c76ece7 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,20 +1,22 @@ - - + + + - - - - + \ No newline at end of file diff --git a/lib/pages/battery_health_page.dart b/lib/pages/battery_health_page.dart index 0a5b51b..8b9b37b 100644 --- a/lib/pages/battery_health_page.dart +++ b/lib/pages/battery_health_page.dart @@ -885,11 +885,17 @@ class _BatteryHealthPageState extends State @override Widget build(BuildContext context) { return AnnotatedRegion( - value: SystemUiOverlayStyle.dark, + value: SystemUiOverlayStyle( + statusBarColor: Colors.white, + statusBarIconBrightness: Brightness.dark, + statusBarBrightness: Brightness.dark, + ), child: Scaffold( + backgroundColor: Colors.white, // 🟢 页面背景色与 AppBar 统一 appBar: AppBar( - backgroundColor: const Color.fromARGB(0, 255, 255, 255), - elevation: 0, + backgroundColor: Colors.white, + elevation: 0, // 🟢 去掉阴影 + scrolledUnderElevation: 0, // 🟢 滚动时也不出现阴影 title: const Text( '电池健康度', style: TextStyle( diff --git a/pubspec.yaml b/pubspec.yaml index 91f9435..682f109 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.3.0-dev.4 +version: 1.4.0 environment: sdk: ^3.9.2