RefreshProgressIndicator constructor

const RefreshProgressIndicator(
  1. {Key? key,
  2. double? value,
  3. Color? backgroundColor,
  4. Color? color,
  5. Animation<Color?>? valueColor,
  6. double strokeWidth = defaultStrokeWidth,
  7. double strokeAlign = strokeAlignCenter,
  8. String? semanticsLabel,
  9. String? semanticsValue,
  10. StrokeCap? strokeCap,
  11. double elevation = 2.0,
  12. EdgeInsetsGeometry indicatorMargin = const EdgeInsets.all(4.0),
  13. EdgeInsetsGeometry indicatorPadding = const EdgeInsets.all(12.0)}
)

Creates a refresh progress indicator.

Rather than creating a refresh progress indicator directly, consider using a RefreshIndicator together with a Scrollable widget.

The value argument can either be null for an indeterminate progress indicator, or a non-null value between 0.0 and 1.0 for a determinate progress indicator.

Accessibility

The semanticsLabel can be used to identify the purpose of this progress bar for screen reading software. The semanticsValue property may be used for determinate progress indicators to indicate how much progress has been made.

Implementation

const RefreshProgressIndicator({
  super.key,
  super.value,
  super.backgroundColor,
  super.color,
  super.valueColor,
  super.strokeWidth = defaultStrokeWidth, // Different default than CircularProgressIndicator.
  super.strokeAlign,
  super.semanticsLabel,
  super.semanticsValue,
  super.strokeCap,
  this.elevation = 2.0,
  this.indicatorMargin = const EdgeInsets.all(4.0),
  this.indicatorPadding = const EdgeInsets.all(12.0),
});