stateful_loader 0.0.2 copy "stateful_loader: ^0.0.2" to clipboard
stateful_loader: ^0.0.2 copied to clipboard

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

stateful_loader #

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

Getting Started #

  1. Use the mixin in your widget's State
class MyHomePageState extends State<MyHomePage> with LoadingWidget {
//...
 } 
  1. Call mixin methods to show/hide a loader
showLoading(context); 
//...
hideLoading();
  1. 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();

//...
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on stateful_loader