toeydevelopment / peek_and_pop_dialog

A Flutter Widget that shows a dialog on LongPressStart and Hides on LongPressEnd.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

peek_and_pop_dialog

A Flutter Widget that shows a dialog on LongPressStart and Hides on LongPressEnd.

Usage

You just have to wrap the widget with PeekAndPopDialog Widget and don't forget the Dialog widget

return PeekAndPopDialog(
                  child: Container(
                    child: Text("Some Widget"),
                  ),
                  dialog: Container(
                    child: Text("The Dialog Widget"),
                    color: Colors.yellow,
                    height: 150.0,
                    width: 150.0,
                  ),
                );

Demo

Demo Demo

About

A Flutter Widget that shows a dialog on LongPressStart and Hides on LongPressEnd.

License:MIT License


Languages

Language:Dart 77.9%Language:HTML 19.2%Language:Swift 2.0%Language:Kotlin 0.6%Language:Objective-C 0.2%