Search packages, repositories and app categories

Package detailsv2.0.0

flutter_overlay_loader

A simple Flutter package for managing overlay loading when fetching remote data or any long-running async task. Flutter overlay loader is easy to use.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
8.6K
Likes
111
Pub points
150

Install package

flutter pub add flutter_overlay_loader

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A lightweight Flutter package designed to display overlay loaders during asynchronous operations like fetching remote data. It provides a simple, customizable way to show loading indicators on top of existing UI elements without disrupting the layout. The loader can be easily toggled on and off, making it ideal for improving user experience during long-running tasks. Built with simplicity in mind, it integrates seamlessly into apps across multiple platforms.

Use cases

  • Displaying loading overlays during API calls
  • Showing progress during data synchronization
  • Enhancing UX during form submissions
  • Managing loading states in list refreshes
  • Providing visual feedback during background processing

Key features

  • Simple API for showing/hiding loaders
  • Customizable overlay appearance
  • Supports all major Flutter platforms
  • Minimal boilerplate required
  • Easy integration with async workflows

Suitable for

  • Developers seeking quick loading UI solutions
  • Apps requiring consistent loading feedback
  • Projects with frequent network requests
  • Teams prioritizing developer efficiency
  • Cross-platform applications

Considerations

  • May require manual state management
  • Limited customization compared to advanced loaders
  • Not suitable for complex loading animations
  • Depends on proper context handling
  • Best used with clear loading logic in place

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Build Passing Pub Version Pub Likes Pub Points Pub Popularity GitHub forks GitHub stars GitHub issues GitHub followers Twitter GitHub license

flutter_overlay_loader

A simple Flutter package for managing loader when fetching remote data or any long running async task. Flutter overlay loader is easy to use. You can show loader using only write two lines of code.

Overlay loader without overlaying Appbar

drawing drawing

Overlay Loader without overlaying BottomAppBar and also overlaying AppBar

drawing

Getting Started

Installing

dependencies:
  flutter_overlay_loader: ^1.0.8
Import
import 'package:flutter_overlay_loader/flutter_overlay_loader.dart';

How To Use

When start network call then call this line of code..

Loader.show(context,progressIndicator:LinearProgressIndicator());

After finished network call then call :

Loader.hide();

You can customize this loader..

Loader.show(context,
  isSafeAreaOverlay: false,
  isBottomBarOverlay: false,
  overlayFromBottom: 80,
  overlayColor: Colors.black26,
  progressIndicator: CircularProgressIndicator(backgroundColor: Colors.red),
  themeData: Theme.of(context)
    .copyWith(colorScheme: ColorScheme.fromSwatch().copyWith(secondary: Colors.green))
);

You can also check loader is showing or not using the property : Loader.isShown and you can prevent back pressed like this snippet:

WillPopScope(
  child: //TODO , 
  onWillPop:()async => !Loader.isShown
)

Finally dispose call hide method on dispose method :

@override
void dispose() {
  Loader.hide();

  super.dispose();
}

Categories

Source repository

Projects using this package

No data available yet.