overlayer 0.5.2 overlayer: ^0.5.2 copied to clipboard
Lightweight utility for put addition overlay widget upon existing widget.
overlayer #
Lightweight utility for put addition overlay widget upon existing widget.
Getting Started #
@override
Widget build(BuildContext context) {
return BlocBuilder<YourBloc, YourState>(builder: (context, state) {
...
// to show indicator
if (state is LoadingState) {
return currentWidget.overlaid(child: CircularProgressIndicator());
}
// to show indicator on dim
if (state is LoadingState) {
return currentWidget.dimmed(child: CircularProgressIndicator()));
}
...
});
}