platformLoading static method

Widget platformLoading({
  1. AnimationController? controller,
  2. Color? borderColor,
  3. required Color? color,
  4. bool animating = true,
  5. required double size,
  6. double? borderSize,
  7. Widget? itemBuilder(
    1. BuildContext,
    2. int
    )?,
  8. Duration? duration = const Duration(milliseconds: 3000),
})

Implementation

static Widget platformLoading({
  AnimationController? controller,
  Color? borderColor,
  required Color? color,
  bool animating = true,
  required double size,
  double? borderSize,
  Widget? Function(BuildContext, int)? itemBuilder,
  Duration? duration = const Duration(milliseconds: 3000),
}) {
  if (Platform.isIOS) {
    return CupertinoActivityIndicator(
      color: color,
      animating: animating,
      radius: size / 3.r,
    );
  } else {
    return LoadingBouncingLine.circle(
      backgroundColor: color!,
      size: size,
    );
  }
}