v3.0.0
panorama_viewer
파노라마 뷰어 - 360도 파노라마 뷰어를 위한 재사용 가능한 위젯입니다.
37좋아요 1.4만30일 다운로드160Pub 점수
AndroidiOS
파노라마 뷰어 - 플러터 위젯
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A 360-degree panorama viewer.
This package is an updated porting of the plugin https://github.com/zesage/panorama.
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'),
),
),
);
}
panorama_viewer instead of panorama.import 'package:panorama_viewer/panorama_viewer.dart';.Panorama to PanoramaViewer.SensorControl, change SensorControl.Orientation to SensorControl.orientation. All constant names are now in lower camel case, following the latest Dart best practices.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.
의존성 목록 5 개
{"sdk":"flutter"}^0.1.1^2.0.1{"sdk":"flutter"}^5.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗