CupertinoProgressBar constructor
const
CupertinoProgressBar({})
Creates an iOS-style progress bar.
The value
argument can either be null for an indeterminate
progress indicator, or non-null 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 CupertinoProgressBar({
Key? key,
this.value = 0.0,
this.trackColor = CupertinoColors.systemFill,
this.valueColor,
this.semanticsLabel,
this.semanticsValue,
}) : assert(value >= 0.0 && value <= 1.0),
super(key: key);