1 Commits

Author SHA1 Message Date
lxh2875931338 49d4127ad9 趋势图逻辑改动 2026-07-04 12:25:46 +08:00
2 changed files with 36 additions and 37 deletions
+2 -3
View File
@@ -795,11 +795,10 @@ class _BatteryHealthPageState extends State<BatteryHealthPage>
children: [
Text(
healthPercent.toStringAsFixed(1),
style: TextStyle(
style: const TextStyle(
fontSize: 40,
fontWeight: FontWeight.w500,
height: 1.0,
color: healthPercent < 70 ? Colors.red : Colors.black, // 🟢 动态颜色
),
),
const SizedBox(width: 2),
@@ -809,7 +808,7 @@ class _BatteryHealthPageState extends State<BatteryHealthPage>
fontSize: 20,
fontWeight: FontWeight.w300,
height: 1.0,
color: healthPercent < 70 ? Colors.red : Colors.grey.shade600, // 🟢 动态颜色
color: Colors.grey.shade600,
),
),
],
+1 -1
View File
@@ -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.3.0
version: 1.2.0-dev.3
environment:
sdk: ^3.9.2