flutter_viewer_usdz 0.0.5 copy "flutter_viewer_usdz: ^0.0.5" to clipboard
flutter_viewer_usdz: ^0.0.5 copied to clipboard

Flutter plugin for visualizing USDZ models.

flutter_viewer_usdz #

Flutter plugin project that allows you to display USDZ models from a url.

Demonstration #

Left Image Demonstration Right Image

Introduction #

This project is a starting point for a plugin package for Flutter, which includes platform-specific implementation code for Android and/or iOS.

Repository #

You can find the source code at the following link: flutter_usdz_viewer.

Installation #

To install this plugin, add the following line to your pubspec.yaml file:

dependencies:
  flutter_viewer_usdz: ^0.0.5

Then, run the following command to install the dependencies:

flutter pub get

Usage #

To use the plugin, import the package in your Dart file:

import 'package:flutter_viewer_usdz/flutter_viewer_usdz.dart';

You can then use the functionalities of the plugin in your application.

Example #

Here is a basic example of how to use the plugin:

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'USDZ Viewer Demo',
      home: const HomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('USDZ Models')),
      body: Center(
        child: ElevatedButton(
          onPressed: () async {
            final viewer = FlutterViewerUsdz();
            await viewer.loadUSDZFile('url_del_modelo.usdz', isUrl: true);
          },
          child: const Text('Load USDZ Model'),
        ),
      ),
    );
  }
}

Contributions #

Contributions are welcome. If you would like to contribute, please open an issue or a pull request.

Documentation #

For help with Flutter development, check out the online documentation, which offers tutorials, examples, and a full API reference.

2
likes
0
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for visualizing USDZ models.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_viewer_usdz