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

full_screen_image 封面
套件詳情v2.0.0

full_screen_image

全螢幕照片檢視器。垂直滾動時會關閉。可與 Hero 小部件一起使用。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2110
喜歡數
131
Pub 分數
130

安裝套件

flutter pub add full_screen_image

套件介紹

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

一個用於在全螢幕顯示影像的 Flutter 套件,具備流暢且由手勢驅動的介面。當使用者垂直捲動時,會自動關閉,確保直覺導航。該套件支援與 Hero 小工具整合,實現畫面間的無縫過渡。專為跨多個平台的簡潔性與效能設計,可提升重視視覺內容應用程式的影像檢視體驗。非常適合相簿、照片分享或任何需要沉浸式影像顯示的應用。

適用情境

  • 在畫廊中查看高解析度照片
  • 創建沉浸式圖像瀏覽體驗
  • 使用圖片實現英雄過渡
  • 建構照片分享應用
  • 增強應用程式中的視覺敘事
  • 顯示全螢幕產品圖片

主要特色

  • 垂直滾動時自動消失
  • Hero widget 相容性
  • 跨平台支援(Android、iOS、Web、macOS、Windows、Linux)
  • 與現有 UI 的簡單整合
  • 流暢的觸控手勢以進行導航
  • 針對效能和回應速度進行了優化

適合對象

  • 影像圖庫應用
  • 照片分享平台
  • 電子商務產品展示
  • 視覺內容密集型應用
  • 尋求簡單全螢幕圖像檢視器的開發者
  • 需要流暢圖像過渡的應用程式

使用建議

  • 除了基本行為之外,自訂選項有限
  • 可能需要額外處理以應對複雜的導航
  • 不適用於多圖像滑動介面
  • 最適合單圖檢視場景
  • 不包含內建影像快取
  • 需要在轉換期間手動管理狀態

原始 README

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

Full Screen image

Full screen photo viewer. It shuts off when scrolling vertically. Can work with Hero widget

Installation

To use this plugin, add full_screen_image as a dependency in your pubspec.yaml file.

full_screen_image: any

Getting Started

Check out the example app using full_screen_image.

Flutter

Full screen image:
  FullScreenWidget(
        child: ClipRRect(
          borderRadius: BorderRadius.circular(16),
          child: Image.asset(
            "assets/image1.jpg",
            fit: BoxFit.cover,
          ),
        ),
      )

Full screen with hero:
FullScreenWidget(
        child: Hero(
          tag: "customTag",
          child: ClipRRect(
            borderRadius: BorderRadius.circular(16),
            child: Image.asset(
              "assets/image2.jpg",
              fit: BoxFit.cover,
            ),
          ),
        ),
      );

Small image:

if you don't want widget full screen then use center widget

 FullScreenWidget(
        child: Center(
          child: Hero(
            tag: "smallImage",
            child: ClipRRect(
              borderRadius: BorderRadius.circular(16),
              child: Image.asset(
                "assets/image3.jpg",
                fit: BoxFit.cover,
              ),
            ),
          ),
        ),
      );
Custom background color:
FullScreenWidget(
        backgroundColor: Colors.purple,
        child: Center(
          child: Hero(
            tag: "customBackground",
            child: ClipRRect(
              borderRadius: BorderRadius.circular(16),
              child: Image.asset(
                "assets/image3.jpg",
                fit: BoxFit.cover,
              ),
            ),
          ),
        ),
      );

Non transparent widget:
FullScreenWidget(
        backgroundColor: Colors.purple,
        backgroundIsTransparent: false,
        child: Center(
          child: Hero(
            tag: "nonTransparent",
            child: ClipRRect(
              borderRadius: BorderRadius.circular(16),
              child: Image.asset(
                "assets/image3.jpg",
                fit: BoxFit.cover,
              ),
            ),
          ),
        ),
      );

Custom widget:
  FullScreenWidget(
        child: SafeArea(
          child: Card(
            elevation: 4,
            child: Container(
              height: 350,
              padding: const EdgeInsets.all(8.0),
              child: Column(
                children: <Widget>[
                  Hero(
                    tag: "customWidget",
                    child: ClipRRect(
                      borderRadius: BorderRadius.circular(16),
                      child: Image.asset(
                        "assets/image3.jpg",
                        fit: BoxFit.cover,
                      ),
                    ),
                  ),
                  SizedBox(
                    height: 16,
                  ),
                  Text('Lorem text',style: TextStyle(color: Colors.black,fontWeight: FontWeight.bold),),
                  SizedBox(
                    height: 16,
                  ),
                  Expanded(
                    child: Text(
                      lorem,
                    ),
                  ),

                ],
              ),
            ),
          ),
        ),
      );

License

Apache

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。