overlayer 0.5.2 copy "overlayer: ^0.5.2" to clipboard
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()));
    }
    ...
  });
}
3
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Lightweight utility for put addition overlay widget upon existing widget.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on overlayer