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