flutter_longpress_preview 0.1.2
flutter_longpress_preview: ^0.1.2 copied to clipboard
A Flutter widget that shows a preview popup on long press, similar to Safari link preview and Instagram peek. Supports any widget, URL OGP preview, and image zoom.
0.1.2 #
- Update screenshot to show context menu actions in English.
0.1.1 #
- Fix screenshot images not displaying on pub.dev (use absolute GitHub raw URLs).
0.1.0 #
- Initial release.
LongPressPreview— shows any widget as a popup on long press.LongPressLinkPreview— auto-fetches OGP metadata and shows a rich link card.LongPressImagePreview— shows an enlarged, zoomable image on long press.- Three animation styles:
scaleFromChild,slideFromBottom,fadeIn. PreviewConfig.alignment— positions the popup anywhere on screen viaAlignment; defaults toAlignment.center.PreviewConfig.actions— optional context menu shown below the preview; popup stays open until the user taps an action or the barrier.PreviewAction— label, optional icon,isDestructiveflag, andonTapcallback.- Reduced default long-press trigger delay to 300 ms.
- Drag-down-to-dismiss gesture.
- Haptic feedback support.
- Full Dart 3 / Flutter 3.10+ compatibility.