model_viewer_plus_ff 4.0.0 copy "model_viewer_plus_ff: ^4.0.0" to clipboard
model_viewer_plus_ff: ^4.0.0 copied to clipboard

A Flutter widget for rendering interactive 3D models in the glTF and GLB formats (Flutterflow adaption)

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:model_viewer_plus/model_viewer_plus.dart';

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(title: const Text('Model Viewer')),
        body: const ModelViewer(
          backgroundColor: Color.fromARGB(0xFF, 0xEE, 0xEE, 0xEE),
          src: 'assets/Astronaut.glb',
          alt: 'A 3D model of an astronaut',
          ar: true,
          arModes: ['scene-viewer', 'webxr', 'quick-look'],
          autoRotate: true,
          iosSrc: 'https://modelviewer.dev/shared-assets/models/Astronaut.usdz',
          disableZoom: true,
        ),
      ),
    );
  }
}
2
likes
140
pub points
55%
popularity

Publisher

unverified uploader

A Flutter widget for rendering interactive 3D models in the glTF and GLB formats (Flutterflow adaption)

Repository (GitHub)
View/report issues

Topics

#model-viewer #model

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

android_intent_plus, flutter, path, url_launcher, webview_flutter, webview_flutter_android, webview_flutter_wkwebview

More

Packages that depend on model_viewer_plus_ff