circularProgress method
Implementation
Widget circularProgress(BuildContext context, double value, TTheme theme) {
return Stack(
alignment: Alignment.center,
children: [
SizedBox(
width: size,
height: size,
child: CircularProgressIndicator(
value: value,
strokeWidth: strokeWidth,
backgroundColor: backgroundColor ?? theme.border,
valueColor:
AlwaysStoppedAnimation<Color>(color ?? theme.primary),
),
),
Text(
"${(value * 100).toInt()}%",
style: TFontRegular.body(context).copyWith(
color: valueColor ?? theme.foreground,
fontSize: size * 0.2,
),
),
],
);
}