useCircleProgress method
void
useCircleProgress({})
Implementation
void useCircleProgress({
Key? key,
Color? backgroundColor,
Color? color,
Animation<Color?>? valueColor,
double strokeWidth = 4.0,
String? semanticsLabel,
String? semanticsValue,
}) =>
loadingBuilder = (
BuildContext context,
Widget child,
ImageChunkEvent? loadingProgress,
) {
if (loadingProgress == null) return child;
return Center(
child: CircularProgressIndicator(
key: key,
backgroundColor: backgroundColor,
color: color,
valueColor: valueColor,
strokeWidth: strokeWidth,
semanticsLabel: semanticsLabel,
semanticsValue: semanticsValue,
value: loadingProgress.expectedTotalBytes != null
? loadingProgress.cumulativeBytesLoaded /
loadingProgress.expectedTotalBytes!
: null,
),
);
};