stateful_loader

Creator: coderz1093

Last updated:

0 purchases

stateful_loader Image
stateful_loader Images

Languages

Categories

Add to Cart

Description:

stateful loader

stateful_loader #
A simple mixin that manages the loader state for you just by calling
showLoader and hideLoader
Getting Started #

Use the mixin in your widget's State

class MyHomePageState extends State<MyHomePage> with LoadingWidget {
//...
}
copied to clipboard

Call mixin methods to show/hide a loader

showLoading(context);
//...
hideLoading();
copied to clipboard

Override mixin methods only if needed, to customize the loader experience

class MyHomePageState extends State<MyHomePage> with LoadingWidget {

@override
bool get barrierDismissible => true;

@override
Widget get loaderWidget => CircularProgressIndicator();

//...
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.