FAProgressBar constructor
FAProgressBar({
- Key? key,
- double currentValue = 0,
- double maxValue = 100,
- double size = 30,
- Duration animatedDuration = const Duration(milliseconds: 300),
- Axis direction = Axis.horizontal,
- VerticalDirection verticalDirection = VerticalDirection.down,
- BorderRadiusGeometry? borderRadius,
- BoxBorder? border,
- Color backgroundColor = const Color(0x00FFFFFF),
- Color progressColor = const Color(0xFFFA7268),
- int? changeColorValue,
- Color changeProgressColor = const Color(0xFF5F4B8B),
- String formatValue() = _defaultFormatValue,
- int? formatValueFixed,
- String? displayText,
- TextStyle displayTextStyle = const TextStyle(color: const Color(0xFFFFFFFF), fontSize: 12),
- Gradient? progressGradient,
Implementation
FAProgressBar({
Key? key,
this.currentValue = 0,
this.maxValue = 100,
this.size = 30,
this.animatedDuration = const Duration(milliseconds: 300),
this.direction = Axis.horizontal,
this.verticalDirection = VerticalDirection.down,
BorderRadiusGeometry? borderRadius,
this.border,
this.backgroundColor = const Color(0x00FFFFFF),
this.progressColor = const Color(0xFFFA7268),
this.changeColorValue,
this.changeProgressColor = const Color(0xFF5F4B8B),
this.formatValue = _defaultFormatValue,
this.formatValueFixed,
this.displayText,
this.displayTextStyle =
const TextStyle(color: const Color(0xFFFFFFFF), fontSize: 12),
this.progressGradient
}) : _borderRadius = borderRadius ?? BorderRadius.circular(8),
super(key: key);