showLoadingDialog function
Implementation
Future<void> showLoadingDialog(
BuildContext context, {
bool useRootNavigator = false,
}) {
return showDialog(
barrierDismissible: false,
context: context,
useRootNavigator: useRootNavigator,
builder: (context) {
return const LoadingWidget();
},
);
}