Compare commits
2 Commits
64e1a9f910
...
1.3.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 17c728565c | |||
| 49d4127ad9 |
@@ -799,7 +799,9 @@ class _BatteryHealthPageState extends State<BatteryHealthPage>
|
|||||||
fontSize: 40,
|
fontSize: 40,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
height: 1.0,
|
height: 1.0,
|
||||||
color: healthPercent < 70 ? Colors.red : Colors.black, // 🟢 动态颜色
|
color: healthPercent < 70
|
||||||
|
? Colors.red
|
||||||
|
: Colors.black, // 🟢 动态颜色
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 2),
|
const SizedBox(width: 2),
|
||||||
@@ -809,7 +811,9 @@ class _BatteryHealthPageState extends State<BatteryHealthPage>
|
|||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.w300,
|
fontWeight: FontWeight.w300,
|
||||||
height: 1.0,
|
height: 1.0,
|
||||||
color: healthPercent < 70 ? Colors.red : Colors.grey.shade600, // 🟢 动态颜色
|
color: healthPercent < 70
|
||||||
|
? Colors.red
|
||||||
|
: Colors.grey.shade600, // 🟢 动态颜色
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user