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

パッケージ詳細v3.0.0

panorama_viewer

パノラマビューアー - 再利用可能な360度パノラマビューアー小道具。

AndroidiOS
30日間ダウンロード
1.4万
いいね数
37
Pub ポイント
160

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

flutter pub add panorama_viewer

パッケージ概要

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

パノラマビューアは、滑らかなインタラクティブなナビゲーションで360度パノラマ画像を表示するための再利用可能なFlutterウィジェットです。ユーザーはドラッグ操作やデバイスの傾きによって没入型の球面ビューを探索でき、バーチャルツアー、不動産、旅行アプリに最適です。パフォーマンスとシンプルさを意識して設計されており、AndroidおよびiOSプラットフォームをサポートしています。簡単なAPIを使用して、既存のFlutterプロジェクトにシームレスに統合できます。

用途

  • バーチャルツアー
  • 不動産の見学
  • 旅行と観光アプリ
  • インタラクティブ製品ショーケース
  • 教育用360°コンテンツ

主な機能

  • 360度インタラクティブビュー
  • デバイスのモーションサポート
  • スムーズなパンとズーム
  • クロスプラットフォーム互換性(AndroidおよびiOS)
  • Flutter とのシンプルな統合
  • パフォーマンス向けの最適化レンダリング

適している対象

  • 没入型体験を構築する開発者
  • 360°画像の表示を必要とするアプリ
  • Android および iOS 向けのモバイルアプリケーション
  • 視覚的な関与に焦点を当てたプロジェクト

注意事項

  • 高解像度のパノラマ画像が必要です
  • 低価格端末でのパフォーマンスに影響する可能性があります
  • 基本的なコントロール以外のカスタマイズオプションは限られている
  • フルスクリーン表示に最適

元の README

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

Panorama Viewer

A 360-degree panorama viewer.

This package is an updated porting of the plugin https://github.com/zesage/panorama.

Getting Started

Add panorama as a dependency in your pubspec.yaml file.

dependencies:
  panorama_viewer: ^2.0.4

Import and add the Panorama Viewer widget to your project.

import 'package:panorama_viewer/panorama_viewer.dart';
... ...
  
@override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: PanoramaViewer(
          child: Image.asset('assets/panorama360.jpg'),
        ),
      ),
    );
  }

Migration from the Panorama package

  • In the dependencies, use panorama_viewer instead of panorama.
  • In the Dart files where you use panorama, change the import to: import 'package:panorama_viewer/panorama_viewer.dart';.
  • Change the widget name from Panorama to PanoramaViewer.
  • If you've used SensorControl, change SensorControl.Orientation to SensorControl.orientation. All constant names are now in lower camel case, following the latest Dart best practices.

Web implementation

On the web, sensors are not utilized because the sensor library used is only compatible with iOS and Android devices. Additionally, on some Android devices, if the panoramic image is too large, nothing is displayed. When checking the console log remotely, you may encounter WebGL errors or warnings.

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

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

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