const
ProgressStatus(- {double radius = 15.0,
- double fillValue = 0.0,
- Color fillColor = blueColor,
- Color backgroundColor = greyColor,
- bool isStrokeCapRounded = true,
- double strokeWidth = 5.0,
- bool showCenterText = true,
- TextStyle? centerTextStyle,
- Alignment centerTextAlignment = Alignment.center,
- Duration animationDuration = defaultDuration,
- Curve animationCurve = Curves.fastOutSlowIn}
)
Implementation
const ProgressStatus(
{double radius = 15.0,
double fillValue = 0.0,
Color fillColor = blueColor,
Color backgroundColor = greyColor,
bool isStrokeCapRounded = true,
double strokeWidth = 5.0,
bool showCenterText = true,
TextStyle? centerTextStyle,
Alignment centerTextAlignment = Alignment.center,
Duration animationDuration = defaultDuration,
Curve animationCurve = Curves.fastOutSlowIn})
: _radius = radius * 2,
_fillValue = fillValue,
_fillColor = fillColor,
_backgroundColor = backgroundColor,
_isStrokeCapRounded = isStrokeCapRounded,
_strokeWidth = strokeWidth,
_showCenterText = showCenterText,
_centerTextStyle = centerTextStyle,
_centerTextAlignment = centerTextAlignment,
_animationDuration = animationDuration,
_animationCurve = animationCurve;