easy_popup 1.0.0 copy "easy_popup: ^1.0.0" to clipboard
easy_popup: ^1.0.0 copied to clipboard

A customized popup widget.

flutter_easy_popup #

License

An easy way to show a flutter custom popup widget.

Example #

cd ./example
flutter create .
flutter run

How to use #

Add dependencies #

dependencies:
  easy_popup: ^1.0.0

1. Define custom popup widget with Mixin EasyPopupChild #

Define your custom popup widget with EasyPopupChild, and implement dismiss function which does work that need to be done while dismiss, eg. show dismiss animation

class CustomWidget extends StatefulWidget with EasyPopupChild {

  ...

  @override
  dismiss() {
    ...
  }
}

2. Call show function #

EasyPopup.show(context, CustomWidget());
4
likes
30
pub points
67%
popularity

Publisher

unverified uploader

A customized popup widget.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on easy_popup