v2.0.7
panorama_viewer
全景檢視器 - 一個可重用的360度全景檢視器小部件。
36喜歡 9700近 30 天下載160Pub 分數
AndroidiOS
全景檢視器 - Flutter 小部件
{"sdk":"flutter"}^0.1.1^2.0.1{"sdk":"flutter"}^5.0.0以下為英文專案原文快照,最新內容請造訪 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.