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

套件詳情v3.0.0

panorama_viewer

全景檢視器 - 一個可重用的360度全景檢視器小部件。

AndroidiOS
近 30 天下載
1.4萬
喜歡數
37
Pub 分數
160

安裝套件

flutter pub add panorama_viewer

套件介紹

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

全景檢視器是一個可重複使用的Flutter組件,專門用於以流暢的互動導航顯示360度全景影像。使用者可以透過拖曳或傾斜裝置來探索沉浸式的球面視圖,非常適合虛擬旅遊、房地產和旅遊應用。此組件著重於效能與簡潔性,支援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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。