flutter_longpress_preview 0.1.7
flutter_longpress_preview: ^0.1.7 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.7 #
- Add
onPreviewTapcallback toLongPressPreview— called when the preview popup itself is tapped, enabling peek-and-pop style navigation. - Update example app: tapping the preview or the "Open" action navigates to a full
ArticleDetailPage. - Update screenshot.
0.1.6 #
- Remove
cached_network_imagedependency to restore WASM compatibility and full platform support (Windows, Linux, Web). - Add missing dartdoc comments to constructors and
OgpData.description. - Compress
on_image_widget.gifscreenshot to satisfy pub.dev 4 MB limit.
0.1.3 #
- Fix
MissingPluginExceptionon Flutter Web when usingLongPressLinkPreview— OGP images now useImage.networkon web instead ofCachedNetworkImage.
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.
