A simple and tiny popup Widget to achive popup like Bootstrap 4 or popper.js and more in flutter apps.
import 'popup/popup.dart'
...
child: Popup(
content: Container() // any widget,
child: Icon(Icons.info) // child for trigger,
),
...
Thats it 😁
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...