flutter_ar_plugin 0.0.1 copy "flutter_ar_plugin: ^0.0.1" to clipboard
flutter_ar_plugin: ^0.0.1 copied to clipboard

flutter_ar_plugin is a Flutter plugin that allows users to load and display 3D models dynamically using ARKit. The plugin supports loading models and reference images from URLs and provides options fo [...]

example/lib/main.dart

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("AR Plugin Example")),
        body: Center(
          child: ElevatedButton(
            onPressed: () {
              // Replace with your dynamic URLs
              String modelUrl =
                  "https://firebasestorage.googleapis.com/v0/b/arsample-595f2.appspot.com/o/Food%2FModels%2Fhandpainted_watercolor_cake.glb?alt=media&token=74a6a7d9-2c4d-4807-833c-073ae8ba69d4";
              String imageUrl =
                  "https://firebasestorage.googleapis.com/v0/b/arsample-595f2.appspot.com/o/Furniture%2Fqr.jpeg?alt=media&token=b39cb577-6f5e-42b6-8172-c2194da5ec27";

              FlutterArPlugin.launchARView(
                  modelUrl: modelUrl, imageUrl: imageUrl, scaleFactor: 5);
            },
            child: Text("Launch AR"),
          ),
        ),
      ),
    );
  }
}
2
likes
140
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

flutter_ar_plugin is a Flutter plugin that allows users to load and display 3D models dynamically using ARKit. The plugin supports loading models and reference images from URLs and provides options for setting the model's scale factor.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, path_provider, plugin_platform_interface

More

Packages that depend on flutter_ar_plugin

Packages that implement flutter_ar_plugin