CircularProgressIndicator.adaptive constructor

const CircularProgressIndicator.adaptive({
  1. Key? key,
  2. double? value,
  3. Color? backgroundColor,
  4. Animation<Color?>? valueColor,
  5. double? strokeWidth = 4.0,
  6. String? semanticsLabel,
  7. String? semanticsValue,
  8. StrokeCap? strokeCap,
  9. double? strokeAlign,
  10. BoxConstraints? constraints,
  11. double? trackGap,
  12. @Deprecated('Use ProgressIndicatorTheme to customize the ProgressIndicator appearance. ' 'This feature was deprecated after v3.27.0-0.2.pre.') bool? year2023,
  13. EdgeInsetsGeometry? padding,
})

Creates an adaptive progress indicator that is a CupertinoActivityIndicator on TargetPlatform.iOS & TargetPlatform.macOS and a CircularProgressIndicator in material theme/non-Apple platforms.

The valueColor, strokeWidth, strokeAlign, strokeCap, semanticsLabel, semanticsValue, trackGap, year2023 will be ignored on iOS & macOS.

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 CircularProgressIndicator.adaptive({
  super.key,
  super.value,
  super.backgroundColor,
  super.valueColor,
  this.strokeWidth = 4.0,
  super.semanticsLabel,
  super.semanticsValue,
  this.strokeCap,
  this.strokeAlign,
  this.constraints,
  this.trackGap,
  @Deprecated(
    'Use ProgressIndicatorTheme to customize the ProgressIndicator appearance. '
    'This feature was deprecated after v3.27.0-0.2.pre.',
  )
  this.year2023,
  this.padding,
}) : _indicatorType = _ActivityIndicatorType.adaptive;