model_viewer 0.2.0 copy "model_viewer: ^0.2.0" to clipboard
model_viewer: ^0.2.0 copied to clipboard

outdated

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

3D Model Viewer for Flutter #

Project license Pub package Dartdoc reference Travis CI build status

This is a Flutter widget for rendering interactive 3D models in the glTF and GLB formats.

Prerequisites #

Installation #

dependencies:
  model_viewer: ^0.2.0

Examples #

Importing the library #

import 'package:model_viewer/model_viewer.dart';

Creating a ModelViewer widget #

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("Model Viewer")),
        body: ModelViewer(
          src: 'https://modelviewer.dev/shared-assets/models/Astronaut.glb',
          alt: "A 3D model of an astronaut",
          ar: true,
          autoRotate: true,
          cameraControls: true,
        ),
      ),
    );
  }
}

Screenshot #

Screenshot of astronaut model
140
likes
0
pub points
80%
popularity

Publisher

verified publisherar.to

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, webview_flutter

More

Packages that depend on model_viewer