CurvedCircularProgressIndicator.adaptive constructor
const
CurvedCircularProgressIndicator.adaptive({})
Creates an adaptive progress indicator that is a CupertinoActivityIndicator in iOS and CurvedCircularProgressIndicator in material theme/non-iOS.
The value
, backgroundColor
, valueColor
, strokeWidth
,
semanticsLabel
, and semanticsValue
will be ignored in iOS.
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 CurvedCircularProgressIndicator.adaptive({
Key? key,
double? value,
Color? backgroundColor,
Animation<Color?>? valueColor,
double? strokeWidth,
String? semanticsLabel,
String? semanticsValue,
}) : _indicatorType = _ActivityIndicatorType.adaptive,
super(
key: key,
value: value,
backgroundColor: backgroundColor,
valueColor: valueColor,
semanticsLabel: semanticsLabel,
semanticsValue: semanticsValue,
strokeWidth: strokeWidth,
);