flutter_guards library

Classes

AuthGuard
gets 3 builder function to load a widget on 3 states of a stream on loading, on data, or on error.
FutureGuard<T>
gets 3 builder function to load a widget on the 3 states of the future on loading, on data, or on error.
LoadingGuard<T>
Use this if you don't care about the state of the Future, else use FutureGuard Widget that can be set at the root of the application to change the screen on the future provide success widget is displayed when the future completes
StreamGuard<T>
gets 3 builder function to load a widget on 3 states of the stream on loading, on data, or on error. (on complete is omitted)