小调整,去掉部分冗余无用句
This commit is contained in:
@@ -1,3 +1,15 @@
|
|||||||
|
## 1.8.0
|
||||||
|
|
||||||
|
### 新增
|
||||||
|
- **夜间模式**:支持浅色 / 深色 / 跟随系统三种模式,可在右上角菜单切换
|
||||||
|
- **主题系统重构**:统一颜色抽象,所有界面颜色由主题管理
|
||||||
|
|
||||||
|
### 优化
|
||||||
|
- 深色主题下潘通色系重新调色,保证对比度
|
||||||
|
- AppBar 与内容区背景统一,消除浅色模式下的分界线
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
## [1.7.1] - 2026-09-16
|
## [1.7.1] - 2026-09-16
|
||||||
|
|
||||||
### 新增
|
### 新增
|
||||||
|
|||||||
+2
-3
@@ -49,10 +49,9 @@ class MyApp extends StatelessWidget {
|
|||||||
appBarTheme: AppBarTheme(
|
appBarTheme: AppBarTheme(
|
||||||
backgroundColor: colors.background, // ← 关键:和 Scaffold 一致
|
backgroundColor: colors.background, // ← 关键:和 Scaffold 一致
|
||||||
foregroundColor: colors.textPrimary,
|
foregroundColor: colors.textPrimary,
|
||||||
surfaceTintColor: Colors.transparent, // ← 关掉 M3 的滑动变色
|
// ← 关掉 M3 的滑动变色
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
shadowColor: Colors.transparent,
|
|
||||||
iconTheme: IconThemeData(color: colors.textPrimary),
|
iconTheme: IconThemeData(color: colors.textPrimary),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ class AboutPage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
backgroundColor: c.background,
|
backgroundColor: c.background,
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
foregroundColor: c.textPrimary,
|
|
||||||
iconTheme: IconThemeData(color: c.textPrimary),
|
|
||||||
),
|
),
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|||||||
@@ -707,9 +707,7 @@ class _BatteryHealthPageState extends State<BatteryHealthPage> {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
// backgroundColor: Colors.white,
|
// backgroundColor: Colors.white,
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
shadowColor: Colors.transparent,
|
|
||||||
surfaceTintColor: Colors.transparent,
|
|
||||||
title: Text(
|
title: Text(
|
||||||
'电池健康度',
|
'电池健康度',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -852,19 +850,29 @@ class _BatteryHealthPageState extends State<BatteryHealthPage> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
: const Center(
|
: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Icon(Icons.battery_unknown, size: 64, color: Colors.grey),
|
Icon(
|
||||||
SizedBox(height: 16),
|
Icons.battery_unknown,
|
||||||
|
size: 64,
|
||||||
|
color: context.colors.textTertiary,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 16),
|
||||||
Text(
|
Text(
|
||||||
'暂无数据',
|
'暂无数据',
|
||||||
style: TextStyle(fontSize: 18, color: Colors.grey),
|
style: TextStyle(
|
||||||
|
fontSize: 18,
|
||||||
|
color: context.colors.textTertiary,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Text(
|
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,
|
elevation: 0,
|
||||||
foregroundColor: c.textPrimary,
|
|
||||||
iconTheme: IconThemeData(color: c.textPrimary),
|
|
||||||
bottom: PreferredSize(
|
bottom: PreferredSize(
|
||||||
preferredSize: const Size.fromHeight(2.0),
|
preferredSize: const Size.fromHeight(2.0),
|
||||||
child: LinearProgressIndicator(
|
child: LinearProgressIndicator(
|
||||||
|
|||||||
@@ -56,11 +56,6 @@ class ChargeDetailPage extends StatelessWidget {
|
|||||||
title: const Text('充电详情'),
|
title: const Text('充电详情'),
|
||||||
backgroundColor: c.background,
|
backgroundColor: c.background,
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
shadowColor: Colors.transparent,
|
|
||||||
surfaceTintColor: Colors.transparent,
|
|
||||||
foregroundColor: c.textPrimary,
|
|
||||||
iconTheme: IconThemeData(color: c.textPrimary),
|
|
||||||
),
|
),
|
||||||
body: Padding(
|
body: Padding(
|
||||||
padding: const EdgeInsets.all(20.0),
|
padding: const EdgeInsets.all(20.0),
|
||||||
|
|||||||
Reference in New Issue
Block a user