패키지, 저장소 및 앱 카테고리 검색

패키지 상세v3.0.0

panorama_viewer

파노라마 뷰어 - 360도 파노라마 뷰어를 위한 재사용 가능한 위젯입니다.

AndroidiOS
30일 다운로드
1.4만
좋아요
37
Pub 점수
160

패키지 설치

flutter pub add panorama_viewer

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

파노라마 뷰어는 360도 파노라마 이미지를 부드러운 상호작용 탐색과 함께 표시하도록 설계된 재사용 가능한 플러터 위젯입니다. 사용자는 드래그하거나 기기를 기울여 몰입감 있는 구형 시야를 탐색할 수 있으며, 가상 투어, 부동산, 여행 앱에 적합합니다. 성능과 간결함을 고려하여 제작되었으며, 안드로이드 및 iOS 플랫폼을 모두 지원합니다. 간단한 API를 통해 기존 플러터 프로젝트에 원활하게 통합할 수 있습니다.

사용 사례

  • 가상 투어
  • 부동산 투어
  • 여행 및 관광 앱
  • 인터랙티브 제품 쇼케이스
  • 교육용 360도 콘텐츠

주요 기능

  • 360도 인터랙티브 뷰
  • 기기 동작 지원
  • 부드러운 패닝 및 줌
  • 크로스 플랫폼 호환성 (Android 및 iOS)
  • Flutter와의 간단한 통합
  • 성능을 위한 최적화된 렌더링

적합한 대상

  • 몰입형 경험을 구축하는 개발자
  • 360도 이미지 보기 기능이 필요한 앱
  • 안드로이드 및 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.