Code Monkey home page Code Monkey logo

dream_xr's Introduction

A simple AR Plugin which allows you to place Flutter Widget in AR. This plugin uses Mind AR to work with AR.

Features

  • Allows to Place Flutter widget on Top of target.
  • Allows to place GLB/GLTF Models.

Puzzle Hack Example

Usage

    ImageARWidget(
        /// Your Target File.
        /// For this example scan any flutter logo
        targetDB: TargetDB.network("https://puzzlehack.b-cdn.net/targets.mind"), 
        tagets: [
          ImageTarget(
            targetIndex: 0,
            children: [
              /// Your Widget.
              WidgetTargetNode.child(
                child: Container(
                  color: Colors.pink.withOpacity(0.5),
                  child: const Center(
                    child: Text("Hello World"),
                  ),
                ),
              ),
              /// Your Target Model.
              ModelTargetNode(
                  modelUrl: "https://puzzlehack.b-cdn.net/cube_grassland.glb",
                  position: const TransformPosition(0.5, -0.5),
                  scale: const TransformScale(0.4, 0.4, 0.4),
                  rotation: const TransformRotation(90, 0, 0)),
            ],
          ),
          /// Works with Multiple Target as well
          ImageTarget(
            targetIndex: 1,
            position: const TransformPosition(
              0,
              0,
            ),
            children: [
              WidgetTargetNode.child(
                child: Container(
                  color: Colors.purple,
                  child: const Center(
                    child: Text("Hello World Index 2"),
                  ),
                ),
              ),
            ],
          ),
        ],
      );

Limitations

  1. Models will always lies below Widget.
  2. .asset() works only for android. For iOS you need to use .network() constructor for Target DB.

Things to be implemented.

  1. Support Loading asset files in iOS,
  2. Provide Dart based implementation

dream_xr's People

Contributors

ritheshsalyan avatar

Watchers

Sachin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.