准备测试关于页

This commit is contained in:
2026-07-31 20:39:07 +08:00
parent 636873e449
commit f83969ed9c
6 changed files with 256 additions and 8 deletions
+15 -8
View File
@@ -21,6 +21,7 @@ import '../widgets/charge_entry.dart';
import '../widgets/charge_detail_page.dart';
import '../widgets/trend_chart.dart';
import '../pages/changelog_page.dart';
import '../pages/about_page.dart';
// --- 潘通色定义 ---
const Color kHealthGreen = Color(0xFF00B140);
@@ -668,23 +669,29 @@ class _BatteryHealthPageState extends State<BatteryHealthPage> {
),
);
break;
case 'dark_mode':
case 'about': // 🟢 新增
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const AboutPage(),
),
);
break;
case 'about':
case 'dark_mode':
// 夜间模式切换逻辑(1.7.0 再实现)
break;
}
},
itemBuilder: (context) => [
const PopupMenuItem(value: 'changelog', child: Text('更新日志')),
const PopupMenuItem(
value: 'dark_mode',
enabled: false,
child: Text('深色模式(开发中)'),
value: 'about', // 🟢 新增
child: Text('关于'),
),
const PopupMenuItem(
value: 'about',
enabled: false,
child: Text('关于(开发中)'),
value: 'dark_mode',
enabled: false, // 暂时灰显
child: Text('夜间模式(开发中)'),
),
],
),