A Flutter widget for displaying and interacting with 360° panoramic images using equirectangular projection.
Available for all platforms supported by Flutter.
- Display 360° panoramic images with proper spherical projection
- Smooth pan and zoom interactions
- Mouse and touch support
Add this to your package's pubspec.yaml
file:
dependencies:
panorama_image: ^0.0.1
See the example app for a complete example.
import 'package:panorama_image/panorama_image.dart';
PanoramaViewer(
image: AssetImage('assets/panorama.jpg'),
initialFOV: 90.0,
onViewChanged: (details) {
print('Longitude: ${details.longitude}');
print('Latitude: ${details.latitude}');
print('FOV: ${details.fov}');
},
)
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by odd.io