Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!"),
    ),
  ),
)

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages