LoadingPanel.asOverlay constructor
LoadingPanel.asOverlay({
- Key? key,
- required String message,
- double? progress,
- BorderRadius? borderRadius,
- RistoLoaderStyle loaderStyle = RistoLoaderStyle.pulsingDots,
A specialized factory meant to be dropped directly into a Stack or over a constrained area.
It defaults to isLoading: true (since you typically only inject it when needed)
and uses a slightly lower blur and lighter barrier color to match your old implementation.
Implementation
factory LoadingPanel.asOverlay({
Key? key,
required String message,
double? progress,
BorderRadius? borderRadius,
RistoLoaderStyle loaderStyle = RistoLoaderStyle.pulsingDots,
}) {
return LoadingPanel(
key: key,
isLoading: true,
// If you call this, you expect it to show.
message: message,
progress: progress,
loaderStyle: loaderStyle,
barrierColor: Colors.black.withCustomOpacity(0.08),
blurSigma: 4.0,
barrierBorderRadius: borderRadius,
);
}