Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flutter_easy_popup

an easy way to show a flutter custom popup widget.

screenshot

example screenshot
dropdown menu dropdown
app operation guide guide
multi highlights multi_highlights
loading
loading

example

you can run example by commands below.

cd ./example
flutter create .
flutter run

getting started

dependencies:
  easy_popup: ^1.0.0

or

dependencies:
  easy_popup: 
    git: https://github.com/bakerjq/flutter_easy_popup.git

usage

define custom popup widget

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() {
    ...
  }
}

call show

call easypopup.show() to show your widget as a popup.

easypopup.show(context, customwidget());

call pop

call easypopup.pop() to dismiss the popup.

easypopup.pop(context);

params

param desc
context buildcontext
child your popup widget
offsetlt left and top offset of the dark background
offsetrb right and bottom offset of the dark background
cancelable whether the popup can be dismissed by touch the outside area, or press back button on android
darkenable whether to show the dark background
duration duration to show the animation
highlights rects to show highlight area

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.