ProgressChart constructor
const
ProgressChart({
- Key? key,
- double width = 0,
- double height = 0,
- double value = 0.2,
- double indicatorLeftPadding = 10,
- TextStyle textStyle = const TextStyle(color: Colors.white),
- ProgressIndicatorBuilder? progressIndicatorBuilder,
- List<
Color> colors = const [Colors.blueAccent, Colors.blue], - Color backgroundColor = Colors.lightBlueAccent,
- bool showAnimation = false,
- bool isFromLastValue = false,
- Duration duration = const Duration(milliseconds: 250),
Implementation
const ProgressChart({
Key? key,
this.width = 0,
this.height = 0,
this.value = 0.2,
this.indicatorLeftPadding = 10,
this.textStyle = const TextStyle(color: Colors.white),
this.progressIndicatorBuilder,
this.colors = const [Colors.blueAccent, Colors.blue],
this.backgroundColor = Colors.lightBlueAccent,
this.showAnimation = false,
this.isFromLastValue = false,
this.duration = const Duration(milliseconds: 250),
}) : assert(0 <= value && value <= 1, 'value 必须在 0 到 1 之间'),
super(key: key);