raj457036 / Flutter-Popups

popper.js like popups for flutter. A simple and tiny popup widget for flutter apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

popper.js like popups for flutter. A simple and tiny popup widget for flutter apps.

License:MIT License


Languages

Language:Dart 94.9%Language:Swift 2.7%Language:Kotlin 2.2%Language:Objective-C 0.2%