flutter_preview_context_menu 0.2.2 copy "flutter_preview_context_menu: ^0.2.2" to clipboard
flutter_preview_context_menu: ^0.2.2 copied to clipboard

A flexible WhatsApp-style context menu for Flutter with custom previews, top content, actions, animation, and viewport-aware overflow handling.

0.2.2 #

  • Replaced the layered preview-specific motion with one synchronized transition for the complete menu.
  • Made left-to-right, centered, and right-to-left entrance animations exact directional counterparts.
  • Removed the ineffective hero-like preview animation and its obsolete configuration API.
  • Fixed a build-time crash caused by reading widget size while Flutter was still building the overlay.
  • Moved overlay content measurement to the post-layout phase so preview, top content, and action panels can open safely in the same frame.
  • Added panelElevation to customize the action panel shadow while keeping the default flat style at 0.
  • Matched top content and action panel entrance motion to the resolved horizontal alignment.
  • Prevented centered preview animations from sliding horizontally when the overlay has to clamp near screen edges.
  • Updated action separators to use the current theme divider color.

0.2.1 #

  • Changed the default action panel background to ColorScheme.surfaceContainer.
  • Made ContextMenuRegion.alignment optional.
  • Added automatic horizontal alignment: the menu centers on the pressed widget when it fits, then aligns to the closest source edge near screen boundaries.
  • Added panel appearance customization for shape, background color, foreground color, barrier color, and blur.

0.2.0 #

  • Added keyboard-aware focus handling when opening and closing a context menu.
  • Added smoother entrance animation for top content and the actions panel.
  • Added ContextMenuAction and ContextMenuRegion.actionChildren for widget-based custom actions with regular Flutter keys.
  • Removed the action identifier requirement from ContextMenuActionData.
  • Updated documentation with the focus behavior and simplified action examples.

0.1.0 #

  • Initial release.
  • Added a long-press context menu region for any widget.
  • Added customizable action rows with icons, descriptions, trailing widgets, disabled state, separators, and destructive styling.
  • Added optional custom previews and top content.
  • Added viewport-aware layout with configurable overflow strategies.
  • Added optional preview animation from the pressed widget position.
1
likes
0
points
377
downloads

Publisher

unverified uploader

Weekly Downloads

A flexible WhatsApp-style context menu for Flutter with custom previews, top content, actions, animation, and viewport-aware overflow handling.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_preview_context_menu