搜尋套件、儲存庫與 APP 分類

insta_image_viewer 封面
套件詳情v1.0.4

insta_image_viewer

一個簡單的全螢幕小部件,支援滑動關閉、捏合縮放。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2730
喜歡數
143
Pub 分數
150

安裝套件

flutter pub add insta_image_viewer

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個專為在全螢幕模式下顯示圖像而設計的 Flutter 小部件,支援直覺的手勢操作,例如滑動關閉、捏合縮放和拖曳。此組件專為跨多個平台提供無縫的影像瀏覽體驗而打造,支援 Android、iOS、Web、macOS、Windows 和 Linux。非常適合需要沉浸式相片瀏覽且設定簡單的應用程式。該套件輕量且易於整合,著重於流暢的效能與使用者友善的互動。

適用情境

  • 全螢幕影像檢視
  • 照片畫廊導航
  • 滑動關閉圖片模態框
  • 捏合縮放圖像探索
  • 影像分享預覽
  • 互動式圖像畫廊

主要特色

  • 向左滑動以關閉
  • 捏合縮放
  • 滑動手勢支援
  • 跨平台相容性
  • 簡單整合
  • 響應式設計

適合對象

  • 行動與網頁照片應用
  • 社群媒體圖片檢視器
  • 電子商務產品圖片顯示
  • 使用者產生內容平台
  • 圖片密集型介面的應用程式

使用建議

  • 有限的自訂選項
  • 無內建影像快取
  • 需要手動載入影像
  • 未針對大型影像集合進行優化
  • 依賴外部圖像提供者
  • 最小動畫效果

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

InstaImageViewer

A simple widget to display image in a full-screen, swipe it to dismiss, pinch & zoom.

InstaImageViewer Demo

Features

  • Show a single image in a full screen mode
  • Nice swipe animation (like in Instagram) to dismiss full screen mode
  • Use pinch & zoom to zoom in and out in a full screen mode
  • No dependencies besides Flutter

Usage

As easy as an image widget:

SizedBox(
  width: 100,
  height: 140,
  child: InstaImageViewer(
    child: Image(
      image: Image.network("https://picsum.photos/id/507/1000").image,
    ),
  ),
),

TODO:

  • Upon request: Possibility to wrap icons with path to large images. According current UI there is no need in in such functionality. But, in a long lists, it will lead to significant UI slowing down. So, if you need this functionality feel free to create an issue.
  • Improve animations

For any bugs, suggestions - please submit an issue.

Credits

InstaImageViewer is a project by Agoradesk, P2P cryptocurrency trading platform. Created by the team behind LocalMonero, the biggest and most trusted Monero P2P trading platform.

所屬分類

原始碼儲存庫

使用此套件的專案