背景色优化
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user