flutter_overlay_loader 1.0.4 copy "flutter_overlay_loader: ^1.0.4" to clipboard
flutter_overlay_loader: ^1.0.4 copied to clipboard

outdated

A new Flutter package for developer who want to show overlay loader or progressbar for completing future task.

flutter_overlay_loader #

A new Flutter package for developer who want to show overlay loader or progressbar for completing future task.

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.4

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();
}
111
likes
0
pub points
96%
popularity

Publisher

unverified uploader

A new Flutter package for developer who want to show overlay loader or progressbar for completing future task.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_overlay_loader