パッケージ、リポジトリ、アプリカテゴリを検索

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との簡単な統合
  • ナビゲーション用のスムーズなタッチジェスチャー
  • パフォーマンスおよび応答性に最適化されています

適している対象

  • 画像ギャラリーアプリ
  • 写真共有プラットフォーム
  • EC商品表示
  • ビジュアルコンテンツ重視のアプリケーション
  • シンプルなフルスクリーン画像ビューアを探している開発者
  • 滑らかな画像遷移を必要とするアプリ

注意事項

  • 基本的な動作以外のカスタマイズオプションは限られている
  • 複雑なナビゲーションに対応するための追加処理が必要になる可能性があります
  • 複数画像スワイプインターフェース用に設計されていません
  • 単一画像表示のシナリオに最適
  • 組み込みの画像キャッシュを含まない
  • 遷移中の状態の手動管理が必要です

元の 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

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。