relative_dialog 0.0.2 copy "relative_dialog: ^0.0.2" to clipboard
relative_dialog: ^0.0.2 copied to clipboard

outdated

Displays a dialog above the current contents of the app relative to the widget associated with the given BuildContext.

Relative Dialog #

A flutter package for displaying a dialog using the showDialog API relative to the widget associated with the given BuildContext.

[Basic demo 2 gif].

[Basic demo gif].

Example #

Builder(
  builder: (context) {
    return ElevatedButton(
      child: Text('Show relative dialog'),
      onPressed: () {
        showRelativeDialog(
          // The context of the widget to show the dialog relative to.
          context: context,
          builder: (context) {
            return Text(
              'Done!',
              style: TextStyle(
                color: Colors.white,
              ),
            ),
          }
        );
      },
    );
  }
)

Demo #

Full demo.

9
likes
0
points
78
downloads

Publisher

unverified uploader

Weekly Downloads

Displays a dialog above the current contents of the app relative to the widget associated with the given BuildContext.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on relative_dialog