simple_mobile_overlay_loader library

A lightweight utility for displaying a modal loader overlay with customizable status text.

This library exposes a single convenience function: showLoaderOverlay.

The overlay blocks user interaction until you remove the returned OverlayEntry. Typical usage:

final entry = showLoaderOverlay(context, message: 'Saving data');
try {
  await performSave();
} finally {
  if (entry.mounted) entry.remove();
}

The overlay fades and scales in for a subtle appearance.

Functions

showLoaderOverlay(BuildContext context, {String message = 'Loading…'}) → OverlayEntry
Inserts and returns an OverlayEntry that shows a blocking loader dialog with a circular progress indicator and optional message.