progressIndicatorWidgetBuilder method

Widget progressIndicatorWidgetBuilder(
  1. BuildContext context,
  2. int index, {
  3. double? value,
})

Returns the progress indicator widget for the given index. The default implementation returns a CircularProgressIndicator. Override this method to customize the progress indicator. The value parameter is the progress value between 0.0 and 1.0. If value is null, the progress indicator is in indeterminate mode. The index parameter is the index of the image being loaded. The context parameter is the build context.

Implementation

Widget progressIndicatorWidgetBuilder(BuildContext context, int index,
    {double? value}) {
  return CircularProgressIndicator(
    value: value,
  );
}