1.5.2版本发布及部分readme更新
This commit is contained in:
+3
-5
@@ -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(
|
||||
|
||||
@@ -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()),
|
||||
|
||||
@@ -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)';
|
||||
|
||||
Reference in New Issue
Block a user