【发布时间】:2021-06-06 14:20:32
【问题描述】:
当达到某个值时,是否可以更改为 CircularProgressIndicator 的 valueColor。
例如:
绿色,如果值
橙色,如果值
红色,如果值 > 60
感谢您的帮助! :)
CircularProgressIndicator(
strokeWidth: 6,
value: amountSpent / budget,
backgroundColor: UiColors.backgroundColor,
valueColor: AlwaysStoppedAnimation<Color>(
UiColors.categoryColors[1]),
),
【问题讨论】:
标签: flutter colors flutter-circularprogressindicator