背景色优化

This commit is contained in:
2026-07-05 01:21:15 +08:00
parent f8ffb32bb0
commit 0450bc9540
4 changed files with 41 additions and 31 deletions
+9 -3
View File
@@ -885,11 +885,17 @@ class _BatteryHealthPageState extends State<BatteryHealthPage>
@override
Widget build(BuildContext context) {
return AnnotatedRegion<SystemUiOverlayStyle>(
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(