小调整,去掉部分冗余无用句
This commit is contained in:
@@ -21,8 +21,6 @@ class AboutPage extends StatelessWidget {
|
||||
),
|
||||
backgroundColor: c.background,
|
||||
elevation: 0,
|
||||
foregroundColor: c.textPrimary,
|
||||
iconTheme: IconThemeData(color: c.textPrimary),
|
||||
),
|
||||
body: Center(
|
||||
child: Padding(
|
||||
|
||||
@@ -707,9 +707,7 @@ class _BatteryHealthPageState extends State<BatteryHealthPage> {
|
||||
appBar: AppBar(
|
||||
// backgroundColor: Colors.white,
|
||||
elevation: 0,
|
||||
scrolledUnderElevation: 0,
|
||||
shadowColor: Colors.transparent,
|
||||
surfaceTintColor: Colors.transparent,
|
||||
|
||||
title: Text(
|
||||
'电池健康度',
|
||||
style: TextStyle(
|
||||
@@ -852,19 +850,29 @@ class _BatteryHealthPageState extends State<BatteryHealthPage> {
|
||||
),
|
||||
],
|
||||
)
|
||||
: const Center(
|
||||
: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(Icons.battery_unknown, size: 64, color: Colors.grey),
|
||||
SizedBox(height: 16),
|
||||
Icon(
|
||||
Icons.battery_unknown,
|
||||
size: 64,
|
||||
color: context.colors.textTertiary,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
'暂无数据',
|
||||
style: TextStyle(fontSize: 18, color: Colors.grey),
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
color: context.colors.textTertiary,
|
||||
),
|
||||
),
|
||||
Text(
|
||||
'点击右上角刷新尝试',
|
||||
style: TextStyle(fontSize: 14, color: Colors.grey),
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: context.colors.textTertiary,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -158,8 +158,7 @@ class _ChangelogPageState extends State<ChangelogPage>
|
||||
),
|
||||
),
|
||||
elevation: 0,
|
||||
foregroundColor: c.textPrimary,
|
||||
iconTheme: IconThemeData(color: c.textPrimary),
|
||||
|
||||
bottom: PreferredSize(
|
||||
preferredSize: const Size.fromHeight(2.0),
|
||||
child: LinearProgressIndicator(
|
||||
|
||||
Reference in New Issue
Block a user