Skip to content

BakerJQ/flutter_easy_popup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_easy_popup

License pub package

An easy way to show a flutter custom popup widget.

Screenshot

Android iOS

Example

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

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());

Releases

No releases published

Packages

No packages published