Skip to content
pubscout

model_viewer_plus

1.10.0, released 12 months ago by an unverified publisher

A Flutter widget for rendering interactive 3D models in glTF and GLB formats.

WASM-ready
$ flutter pub add model_viewer_plus
Source repository

What it does

The package provides a Flutter widget that embeds Google's <model-viewer> web component using a WebView on mobile and native web integration on the web platform. It allows rendering interactive 3D models with options for auto-rotation, zooming, and augmented reality (AR) views.

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

Use it when

  • You need to display interactive 3D models in glTF or GLB format within your Flutter app.
  • You require cross-platform 3D model rendering supporting Android, iOS, and Web.

Skip it when

  • Target devices have outdated system browser versions that do not support the required model-viewer features.
  • You are loading models from remote URLs that do not permit CORS headers.

Strengths

  • Supports Android, iOS, and Web platforms.
  • Enables AR viewing capabilities on supported devices.
  • Handles animation, auto-rotation, and custom background colors.

Weaknesses

  • Requires specific platform configuration steps (AndroidManifest.xml, Info.plist, web/index.html).
  • AR View may not be available on iOS 16+.
  • Remote models require proper CORS headers to load successfully.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
7

Requires modifying AndroidManifest.xml for cleartext traffic on Android 9+, setting minSdkVersion to 24, adding io.flutter.embedded_views_preview to Info.plist on iOS, and including the model-viewer script in web/index.html for Web support.

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Model Viewer')),
        body: const ModelViewer(
          backgroundColor: Color.fromARGB(0xFF, 0xEE, 0xEE, 0xEE),
          src: 'https://modelviewer.dev/shared-assets/models/Astronaut.glb',
          alt: 'A 3D model of an astronaut',
          ar: true,
          autoRotate: true,
          iosSrc: 'https://modelviewer.dev/shared-assets/models/Astronaut.usdz',
          disableZoom: true,
        ),
      ),
    );
  }
}

Works with

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