Skip to content
pubscout

panorama_viewer

3.0.0, released 5 weeks ago by dariocavada.com

360-degree panorama viewer widget for Flutter.

$ flutter pub add panorama_viewer
Source repository

What it does

PanoramaViewer displays a 360° image and lets users rotate it with touch or device sensors. It supports Android, iOS, and web (without sensors).

AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need an interactive 360° image viewer in a Flutter app.
  • Want to use device motion to control the view on mobile.
  • Building a virtual tour or product showcase with panoramic images.

Skip it when

  • Using an older Flutter SDK (<3.47) or Dart (<3.13).
  • Requiring full sensor support on web or older Android/Kotlin setups.

Strengths

  • Simple API, no extra code generation.
  • Supports device sensors for natural interaction.
  • Updated to latest Flutter and Dart versions.
  • Well-documented migration guide.

Weaknesses

  • Requires recent Flutter/Dart and specific Android/Kotlin setup.
  • Limited sensor support on web.
  • No built-in support for custom hotspots or overlays.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
2

Upgrade to Flutter 3.47+ and Dart 3.13+. Android needs AGP 9, Kotlin 2.4.20+, Gradle 9.3.1, Java/Kotlin 17. iOS uses Swift Package Manager and requires iOS 13+. Add dchs_motion_sensors ^3.0.0 as dependency.

import 'package:panorama_viewer/panorama_viewer.dart';

class MyPanorama extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: PanoramaViewer(
          child: Image.asset('assets/panorama360.jpg'),
        ),
      ),
    );
  }
}

Works with

Packages commonly used together with panorama_viewer: ones it builds on, ones built on it, and its own family.