Animation<Color> valueColor,//进度条指示器的颜色值 this.strokeWidth = 4.0,//旋转轨迹的宽度 String semanticsLabel, String semanticsValue, }) : super( key: key, value: value, backgroundColor: backgroundColor, valueColor: valueColor, semanticsLabel: semanticsLabel, semanticsValue: semanticsValue, ...
2.1、LinearProgressIndicator的源码介绍 constLinearProgressIndicator({Key key,double value,//具体进度值Color backgroundColor,//背景色Animation<Color>valueColor,//进度条指示器的颜色值this.minHeight,//最小高度String semanticsLabel,String semanticsValue,}):assert(minHeight==null||minHeight>0),super(key:k...
this was the stack: I/flutter ( 3819): #0 Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:46:5) I/flutter ( 3819): #1 _ProgressIndicatorDemoState.build (file:///E:/Flutter_work/animation_test/lib/main.dart:
不同类型指示器列表https://pub.dev/packages/percent_indicator 试用此模板代码
转换成线性百分比指示器。是这样的:
您可以使用具有GradientProgressIndicator的gradient_widgets包,我相信这就是您要查找的内容。
删除线性进度指示器前的Const关键字。因为BorderRadius.circular调用绘制边界半径的动态计算,因此关键字const...