FAProgressBar constructor

FAProgressBar({
  1. Key? key,
  2. double currentValue = 0,
  3. double maxValue = 100,
  4. double size = 30,
  5. Duration animatedDuration = const Duration(milliseconds: 300),
  6. Axis direction = Axis.horizontal,
  7. VerticalDirection verticalDirection = VerticalDirection.down,
  8. BorderRadiusGeometry? borderRadius,
  9. BoxBorder? border,
  10. Color backgroundColor = const Color(0x00FFFFFF),
  11. Color progressColor = const Color(0xFFFA7268),
  12. int? changeColorValue,
  13. Color changeProgressColor = const Color(0xFF5F4B8B),
  14. String formatValue(
    1. double value,
    2. int? fixed
    ) = _defaultFormatValue,
  15. int? formatValueFixed,
  16. String? displayText,
  17. TextStyle displayTextStyle = const TextStyle(color: const Color(0xFFFFFFFF), fontSize: 12),
  18. 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);