platformLoading static method
Widget
platformLoading({})
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,
);
}
}