loaderDialog static method
Full Screen Loading Dialog.
Implementation
static loaderDialog(
{bool? show,
double loaderSize = 50.0,
Color? color,
double? strokeWidth}) {
if (show!) {
_isLoading = show;
showDialog(
context: navigationService.context,
builder: (context) {
return WillPopScope(
onWillPop: () => Future.value(false),
child: circularLoader(
color: color, size: loaderSize, strokeWidth: strokeWidth));
},
);
} else {
if (_isLoading) {
_isLoading = show;
navigationService.back();
}
}
}