show static method
void
show(
{ - BuildContext? context,
- Widget loadingWidget = const CircularProgressIndicator(),
})
Implementation
static void show({BuildContext? context, Widget loadingWidget = const CircularProgressIndicator()}) async {
isLoading = true;
try {
Get.dialog(
PopScope(
canPop: false,
child: Center(
child: Container(
width: 120,
height: 120,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(40),
),
child: Center(child: loadingWidget),
),
),
),
);
} catch (e, s) {
throw Exception("""
\n🚨 Please wrap your 📱 App with GetMaterialApp ♺
\nError Details:
$e
\nStack Trace:
$s
""");
}
}