buildLoadingOverlayWidget method
Builds the loading overlay.
Parameters:
child: The widget to wrap with the loading overlayloadingKey: Optional key to manage multiple loading statesloadingWidget: Optional custom loading indicator widgettimeout: How long before a stuck spinner is force-cleared
Implementation
Widget buildLoadingOverlayWidget({
required Widget child,
String? loadingKey = LoadingKey.global,
Widget? loadingWidget,
Duration timeout = const Duration(seconds: 30),
}) {
return _LoadingOverlay(
loadingKey: loadingKey ?? LoadingKey.global,
loadingWidget: loadingWidget ?? buildPageLoading(),
timeout: timeout,
child: child,
);
}