Skip to content
pubscout

loader_overlay

5.0.0, released 2 years ago by rodrigobastos.dev

Show a loading overlay to prevent user interaction during async operations.

WASM-ready
$ flutter pub add loader_overlay
Source repository

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.

Works with

Packages commonly used together with loader_overlay: ones it builds on, ones built on it, and its own family.