loadingInScreen static method
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,
),
);
}