loadingInScreen static method

Widget loadingInScreen({
  1. required BuildContext context,
  2. Color? circularProgressColor,
})

Implementation

static Widget loadingInScreen({
  required BuildContext context,
  Color? circularProgressColor,
}) {
  final config = ImosysAppWrapper.of(context);
  final resolvedProgressColor =
      circularProgressColor ?? config.circularProgressColor ?? config.semanticColors.info;

  return Platform.isAndroid
      ? Center(
          child: CircularProgressIndicator(
            color: resolvedProgressColor,
          ),
        )
      : Center(
          child: CupertinoActivityIndicator(
            color: resolvedProgressColor,
            radius: 20,
          ),
        );
}