loading_overlay
0.7.0, released 6 days ago by an unverified publisher
Shows a loading overlay that auto‑hides when async work completes.
What it does
The package displays a modal overlay with a spinner, optional message and progress. It automatically cleans up when the wrapped async operation finishes, supports concurrent tasks, and blocks interaction for accessibility.
AI-written summary of version 0.7.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- During a single async operation that needs a visual cue
- When multiple async tasks run concurrently and you want the overlay to stay until all finish
- When you need an app‑wide or route‑level loading guard
- When you want a fully accessible, reduced‑motion‑friendly loading UI
Skip it when
- When you require a custom Material/Cupertino spinner without providing a custom builder
- When you need to integrate with a global state manager that already handles loading states
Strengths
- Automatic cleanup and error propagation
- Concurrent task support without interference
- Built‑in accessibility and reduced‑motion handling
- No extra runtime dependencies
Weaknesses
- Breaking changes in 0.7.0 (default indicator, interaction blocking)
- Requires manual controller for advanced use
- No built‑in Material/Cupertino spinners after breaking change
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
```dart
LoadingOverlay(
isLoading: isSaving,
message: 'Saving…',
child: yourPage,
)
```Alternatives
Packages that do the same job and could replace loading_overlay.
- flutter_easyloading
Lightweight, customizable loading and toast overlay for Flutter without BuildContext.
71Compare - arrow_popup
A popup bubble with a pointing arrow for tooltips, popovers, menus and dropdowns.
73Compare - overlay_loading_progress
An overlay loading progress indicator widget.
45Compare - loader_overlay
Show a loading overlay to prevent user interaction during async operations.
66Compare