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

A context menu that opens on long press with a zoom animation and blurred backdrop, similar to iOS peek and pop. Supports head and body menus.

deep_menu #

A context menu that opens on long press with a zoom animation and blurred backdrop, similar to iOS peek and pop. Supports a head menu (above the pressed widget) and a body menu (below it).

Features #

  • Opens a menu after a long press
  • Head (top) and body (bottom) menus
  • Haptic feedback on open
  • Smooth in/out animation with a blurred backdrop

Demo #

Usage #

DeepMenu(
  headMenu: Column(
    children: [
      ElevatedButton(
        onPressed: () => Navigator.of(context).pop(),
        child: const Text("Remove"),
      ),
    ],
  ),
  bodyMenu: DeepMenuList(items: [
    DeepMenuItem(
      label: const Text("Save"),
      icon: const Icon(Icons.save),
      onTap: () => Navigator.of(context).pop(),
    ),
  ]),
  child: const Card(
    child: Padding(
      padding: EdgeInsets.all(10),
      child: Text("Message!"),
    ),
  ),
)
20
likes
160
points
131
downloads

Documentation

API reference

Publisher

verified publisherkraigo.dev

Weekly Downloads

A context menu that opens on long press with a zoom animation and blurred backdrop, similar to iOS peek and pop. Supports head and body menus.

Repository (GitHub)
View/report issues

Topics

#menu #context-menu #long-press #ui #widget

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on deep_menu