flutter_longpress_preview 0.1.1 copy "flutter_longpress_preview: ^0.1.1" to clipboard
flutter_longpress_preview: ^0.1.1 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.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
0
points
267
downloads

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

unknown (license)

Dependencies

cached_network_image, flutter, html, http

More

Packages that depend on flutter_longpress_preview