カテゴリー・パッケージ・リポジトリを検索

imageview360 のカバー
パッケージ詳細v1.3.0

imageview360

回転およびジェスチャーのカスタマイズが可能な画像の360度ビューを提供するFlutterパッケージ。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
145
いいね数
198
Pub ポイント
150

パッケージをインストール

flutter pub add imageview360

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

imageview360 は、スムーズな回転とカスタマイズ可能なジェスチャーを備えた没入型の360度画像表示を可能にするFlutterパッケージです。ユーザーはスワイプまたはドラッグすることでパノラマ画像を探索でき、バーチャルツアー、製品紹介、インタラクティブメディアに最適です。このパッケージはAndroid、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしており、広範な互換性を確保しています。開発者はアプリのデザインに合わせて回転速度、感度、インタラクションの挙動を微調整できます。パフォーマンスと使いやすさを意識して構築されており、Flutterアプリへの統合がスムーズです。

用途

  • バーチャルリアリティ体験
  • プロダクトのビジュアライゼーション
  • インタラクティブな写真ギャラリー
  • 教育用360コンテンツ
  • 不動産の見学

主な機能

  • スムーズな360度回転
  • カスタマイズ可能なジェスチャー制御
  • クロスプラットフォーム対応
  • 高パフォーマンスレンダリング
  • 回転速度の設定可能
  • レスポンシブなタッチ操作

適している対象

  • 没入型画像探査を必要とするアプリ
  • 3D製品ビューを備えたECプラットフォーム
  • 旅行と観光アプリ
  • パノラマコンテンツを備えた教育ツール
  • インタラクティブなストーリーテリングアプリ

注意事項

  • 高解像度のソース画像が必要です
  • 低価格端末でのパフォーマンスに影響する可能性があります
  • 静的360画像に限定(動画は不可)
  • 初期設定には画像前処理が必要になる場合があります
  • ジェスチャーのカスタマイズにはFlutterの入力処理に精通している必要があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

imageview360

A Flutter package which provides 360 view of the images with rotation and gesture customisations.

Supported Dart Versions

Dart SDK version >= 2.12.0

Demo Gif

imageview360 Demo

Installation

Pub

Add the Package

dependencies:
  imageview360: ^1.2.0

How to use

Import the package in your dart file

import 'package:imageview360/imageview360.dart';

Basic usage :
ImageView360(
     key: UniqueKey(),
     imageList: imageList,
),

Note: For ImageView360 to show instant changes on hot reload, you need to provide UniqueKey() so that the widget rebuilds every time.

Customisable usage :
ImageView360(
    key: UniqueKey(),                                           
    imageList: imageList,                                       
    autoRotate: true,                                           //Optional
    rotationCount: 2,                                           //Optional
    rotationDirection: RotationDirection.anticlockwise,         //Optional
    frameChangeDuration: Duration(milliseconds: 50),            //Optional
    swipeSensitivity: 2,                                        //Optional
    allowSwipeToRotate: true,                                   //Optional
    onImageIndexChanged: (currentImageIndex) {                  //Optional
                          print("currentImageIndex: $currentImageIndex");
                        },
)

Note: For better experience always precache image before providing the images to the widget as follows.

Example for loading and precaching images from assets :
 List<ImageProvider> imageList = List<ImageProvider>();
   for (int i = 1; i <= 52; i++) {
      imageList.add(AssetImage('assets/sample/$i.png'));
// To precache images so that when required they are loaded faster.
      await precacheImage(AssetImage('assets/sample/$i.png'), context);
    }
Mandatory fields
Attribute Type Usage
imageList List The list of images to be displayed
Customisable fields
Attribute Type Default Value
autoRotate bool false
rotationCount int 1
rotationDirection RotationDirection RotationDirection.clockwise
frameChangeDuration Duration Duration(milliseconds: 80)
swipeSensitivity int 1 (Note : Range allowed is 1-5 , less than 1 would be considered 1 and more than 5 would be considered 5)
allowSwipeToRotate bool true
onImageIndexChanged Function(int) (currentImageIndex){}

Blog Post

To have a better understanding how this package works under the hood, checkout my blog post: 360 degree image showcase in Flutter

Created & Maintained By

Harpreet Singh

Damanpreet Singh

License

Copyright 2020 Harpreet Singh & Damanpreet Singh

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

カテゴリー

ソースリポジトリ

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

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