flutter_longpress_preview 0.1.7 copy "flutter_longpress_preview: ^0.1.7" to clipboard
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 onPreviewTap callback to LongPressPreview — 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_image dependency to restore WASM compatibility and full platform support (Windows, Linux, Web).
  • Add missing dartdoc comments to constructors and OgpData.description.
  • Compress on_image_widget.gif screenshot to satisfy pub.dev 4 MB limit.

0.1.3 #

  • Fix MissingPluginException on Flutter Web when using LongPressLinkPreview — OGP images now use Image.network on web instead of CachedNetworkImage.

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 via Alignment; defaults to Alignment.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, isDestructive flag, and onTap callback.
  • Reduced default long-press trigger delay to 300 ms.
  • Drag-down-to-dismiss gesture.
  • Haptic feedback support.
  • Full Dart 3 / Flutter 3.10+ compatibility.
2
likes
160
points
267
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, html, http

More

Packages that depend on flutter_longpress_preview