Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.15 KB

README.md

File metadata and controls

68 lines (45 loc) · 1.15 KB

Simple Popup Flutter

A simple and tiny popup Widget to achive popup like Bootstrap 4 or popper.js and more in flutter apps.

Flutter Popup

Demo

Flutter popups demo

How to use

import 'popup/popup.dart'

...

child: Popup(
    content: Container() // any widget,
    child: Icon(Icons.info) // child for trigger,
),

...

Thats it 😁

If You Liked add a Star 🌟🌟

Advance Use

import 'popup/popup.dart'

...

PopupController _controller = PopupController();

...

child: Popup(
    controller: _controller,
    content: Container() // some widget,
    child: Icon(Icons.info) // some triggering child,
    size: Size(200.0, 300.0) // constraint width and height of popup,
    caretSize: 6.0 // size of caret on popup,
    rounded: true // add a border radius around popup (true by default),
)
...

openPopup() {
    _controller.openPopup();
}

closePopup() {
    _controller.closePopup();
}

isPopupOpened() {
    return _controller.opened;
}

Thats it for now...

Thank you

Add a Star ⭐✨ if You liked the Widget