LinearProgressIndicator constructor

const LinearProgressIndicator({
  1. Key? key,
  2. double? value,
  3. Color? backgroundColor,
  4. Color? color,
  5. Animation<Color?>? valueColor,
  6. double? minHeight,
  7. String? semanticsLabel,
  8. String? semanticsValue,
  9. BorderRadiusGeometry? borderRadius,
  10. Color? stopIndicatorColor,
  11. double? stopIndicatorRadius,
  12. double? trackGap,
  13. @Deprecated('Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. ' 'In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. ' 'This feature was deprecated after v3.26.0-0.1.pre.') bool? year2023,
})

Creates a linear progress indicator.

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 LinearProgressIndicator({
  super.key,
  super.value,
  super.backgroundColor,
  super.color,
  super.valueColor,
  this.minHeight,
  super.semanticsLabel,
  super.semanticsValue,
  this.borderRadius,
  this.stopIndicatorColor,
  this.stopIndicatorRadius,
  this.trackGap,
  @Deprecated(
    'Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. '
    'In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. '
    'This feature was deprecated after v3.26.0-0.1.pre.',
  )
  this.year2023,
}) : assert(minHeight == null || minHeight > 0);