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