TProgressBar constructor

const TProgressBar({
  1. Key? key,
  2. double value = 0.0,
  3. bool indeterminate = false,
  4. bool flowing = false,
  5. double height = 8.0,
  6. Color? color,
  7. Color? colorBuilder(
    1. double value,
    2. double percentage
    )?,
  8. Color? backgroundColor,
  9. String? label,
  10. bool showPercentage = false,
  11. String? valueText,
  12. TProgressValuePosition valuePosition = TProgressValuePosition.topRight,
  13. bool? inline,
  14. double borderRadius = 10.0,
  15. Duration animationDuration = const Duration(milliseconds: 300),
  16. TextStyle? valueStyle,
})

Creates a progress bar.

Implementation

const TProgressBar({
  super.key,
  this.value = 0.0,
  this.indeterminate = false,
  this.flowing = false,
  this.height = 8.0,
  this.color,
  this.colorBuilder,
  this.backgroundColor,
  this.label,
  this.showPercentage = false,
  this.valueText,
  this.valuePosition = TProgressValuePosition.topRight,
  this.inline,
  this.borderRadius = 10.0,
  this.animationDuration = const Duration(milliseconds: 300),
  this.valueStyle,
});