Skip to content

Nizam54/stateful_loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

//...
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published