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