buildByMaterial method
build on material mode
Implementation
@override
Widget buildByMaterial(BuildContext context) {
final double? _value = valueOf('value', value);
final Color? _backgroundColor = valueOf('backgroundColor', backgroundColor);
final Color? _color = valueOf('color', color);
final Animation<Color?>? _valueColor = valueOf('valueColor', valueColor);
final String? _semanticsLabel = valueOf('semanticsLabel', semanticsLabel);
final String? _semanticsValue = valueOf('semanticsValue', semanticsValue);
if (linearIndicator) {
return LinearProgressIndicator(
value: _value,
backgroundColor: _backgroundColor,
color: _color,
valueColor: _valueColor,
minHeight: valueOf('minHeight', minHeight),
semanticsLabel: _semanticsLabel,
semanticsValue: _semanticsValue,
);
}
return CircularProgressIndicator(
value: _value,
backgroundColor: _backgroundColor,
color: _color,
valueColor: _valueColor,
strokeWidth: valueOf('strokeWidth', strokeWidth),
semanticsLabel: _semanticsLabel,
semanticsValue: _semanticsValue,
);
}