loader_overlay
5.0.0, released 2 years ago by rodrigobastos.dev
Show a loading overlay to prevent user interaction during async operations.
What it does
Provides widgets like LoaderOverlay and GlobalLoaderOverlay to block screen interaction while background tasks run. Allows showing progress messages and custom loader widgets via context extensions.
AI-written summary of version 5.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to block screen interactions during async tasks
- You want to display global or local loading spinners easily
Skip it when
- You are building a package or layer that should not depend on Flutter widgets for state management
- You prefer completely custom state-driven overlay implementations
Strengths
- Simple extension methods on BuildContext for show, hide, and progress
- Supports custom loading widgets and global route overlays
- Configurable overlay background color and animations
Weaknesses
- Depends on BuildContext to show or hide the overlay
- Tests are not documented as implemented in the package
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Wrap your MaterialApp or specific widgets with LoaderOverlay or GlobalLoaderOverlay.
LoaderOverlay(
child: MyHomePage(),
);
context.loaderOverlay.show();
// ... async task ...
context.loaderOverlay.hide();Alternatives
Packages that do the same job and could replace loader_overlay.
- loading_overlay
Shows a loading overlay that auto‑hides when async work completes.
85Compare - inview_notifier_list
Builds a ListView or CustomScrollView and notifies when widgets are on screen.
67Compare - focus_detector
Detects when your widget appears or disappears from the screen.
50Compare - splash_view
A widget that shows a customizable splash screen with logo, loading indicator and redirects after a duration.
47Compare
Works with
Packages commonly used together with loader_overlay: ones it builds on, ones built on it, and its own family.