Loading, progress and toast overlays for Flutter without a BuildContext
open sourceMITfree
Flutter EasyLoading (flutter_easyloading) is a Flutter package that shows loading spinners, determinate progress, success or error results and toast messages as an overlay, called from anywhere without passing a BuildContext. One host widget goes at the root of a MaterialApp or CupertinoApp. It comes with built-in indicators and takes custom widgets and transitions, with global defaults that each call can override.
Problems it solves
- show a loading spinner in my Flutter app from a service class that has no BuildContext
- display a toast or success message from anywhere in a Flutter app
- add a progress overlay while a Flutter app uploads a file
Features
- loading, determinate progress, result states and toasts
- global calls without a BuildContext
- built-in indicators, custom widgets and custom transitions
- global defaults with per-call overrides
- Material and Cupertino apps
Limitations
- Version 4 needs Dart 3.6 and Flutter 3.27 or later, and moving from 3.x follows a migration guide.1
Alternatives
The same job
These do what Flutter EasyLoading does.
- fluttertoast Toast messages for Flutter in a single line of code
- flutter_spinkit Animated loading indicators for Flutter, inspired by SpinKit
