top_modal_sheet 2.0.0 copy "top_modal_sheet: ^2.0.0" to clipboard
top_modal_sheet: ^2.0.0 copied to clipboard

outdated

A simple top modal sheet implementation in pure dart. Menu button widget with handsome design and easy to use.

top_modal_sheet #

A popup simple topModalSheet menu button widget with handsome design and easy to use.

Installations #

Add top_modal_sheet: ^1.0.0 in your pubspec.yaml dependencies. And import it:

import 'package:top_modal_sheet/top_modal_sheet.dart';

How to use #

Simply call showModalTopSheet to display it

MaterialButton(
  color: Colors.white,
  elevation: 5,
  child: const Text("Show TopModal 1"),
  onPressed: () async {
    var value = await showTopModalSheet<String?>(context, DumyModal());
        
    setState(() { _topModalData = value; });
  },
)

For a more detail example please take a look at the example folder.

Example #

- #

If something is missing, feel free to open a ticket or contribute!

27
likes
0
pub points
93%
popularity

Publisher

unverified uploader

A simple top modal sheet implementation in pure dart. Menu button widget with handsome design and easy to use.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on top_modal_sheet