common/widgets/loaders library

Mixins

CompletableMixin<T extends StatefulWidget>
CompletableMixin is an extension allowing you to seamlessly add a whole screen loader on your page. Assign a value to loadingDialogCompleter to display your loader, then call waitForDialog in order to dismiss it.

Functions

showLoadingBarrier({required BuildContext context, String? text}) Completer<BuildContext>
A simple loader that can be used in conjunction with CompletableMixin. Displays a simple AlertDialog that covers the whole screen until dismissed. User cannot dismiss it from screen touch or back press.
showSimpleLoadingBarrier({required BuildContext context}) Completer<BuildContext>
A simple loader that can be used in conjunction with CompletableMixin. Displays a translucent barrier that covers the whole screen until dismissed. User cannot dismiss it from screen touch or back press.