1.5.2版本发布及部分readme更新

This commit is contained in:
2026-07-14 23:03:35 +08:00
parent bb9a3dc3f5
commit ae9bb2dfa1
5 changed files with 10 additions and 10 deletions
+3 -5
View File
@@ -23,11 +23,9 @@ class MyApp extends StatelessWidget {
// 🟢 数字回退到 FlymeFont
fontFamilyFallback: const ['Flyme'],
// 🟢 统一文字颜色为黑色
colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFFFFFFFF))
.copyWith(
onSurface: Colors.black, // 主要文字颜色
onBackground: Colors.black,
),
colorScheme: ColorScheme.fromSeed(
seedColor: const Color(0xFFFFFFFF),
).copyWith(onSurface: Colors.black),
textTheme: const TextTheme(
// 大标题/数字(健康度、容量等)
displayMedium: TextStyle(
+1 -1
View File
@@ -91,7 +91,7 @@ class BatterySummary extends StatelessWidget {
text: ' / ',
style: TextStyle(
fontFamily: 'HarmonyOS_Sans_SC',
color: const Color(0xFF5F5F5F).withOpacity(0.5),
color: const Color(0xFF5F5F5F).withValues(alpha: 0.5),
),
),
TextSpan(text: designCap.toString()),
+2 -2
View File
@@ -11,14 +11,14 @@ class ChargeDetailPage extends StatelessWidget {
final int? wiredLevel;
const ChargeDetailPage({
Key? key,
super.key,
required this.chargeType,
required this.isWireless,
required this.power,
required this.volt,
required this.curr,
this.wiredLevel,
}) : super(key: key);
});
String _getProtocolDisplay() {
if (isWireless) return '无线充电($chargeType';