diff --git a/README.md b/README.md index 801ad70..d70152e 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,9 @@ | 版本 | 主题 | 状态 | | :--- | :--- | :--- | | 1.5.0 | 功率计算优化 | ✅ 已发布 | -| 2.0.0 | 数据看板扩展(月/季/年趋势) | 📋 远景 | +| 1.5.2 | 部分场景字体替换 | ✅ 已发布 | +| 1.6.0 | 更新日志独立页面 | 📋近期开发 | +| 2.0.0 | 数据看板扩展等系列更新 | 📋 远景 | --- diff --git a/lib/main.dart b/lib/main.dart index 73a82d7..a74b0a2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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( diff --git a/lib/widgets/battery_summary.dart b/lib/widgets/battery_summary.dart index 856cbe6..c6a02d8 100644 --- a/lib/widgets/battery_summary.dart +++ b/lib/widgets/battery_summary.dart @@ -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()), diff --git a/lib/widgets/charge_detail_page.dart b/lib/widgets/charge_detail_page.dart index 610be3a..4a191eb 100644 --- a/lib/widgets/charge_detail_page.dart +++ b/lib/widgets/charge_detail_page.dart @@ -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)'; diff --git a/pubspec.yaml b/pubspec.yaml index a7922eb..f2da5c0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.5.0 +version: 1.5.2 environment: sdk: ^3.9.2