Giter Club home page Giter Club logo

Comments (11)

ajay-k07 avatar ajay-k07 commented on June 3, 2024

i too have the same problem help me if you found any solutions

from model_viewer.dart.

RenatBack avatar RenatBack commented on June 3, 2024

i too have the same problem help me if you found any solutions

Hello. I know how to fix it.

  1. You need to set or update AR settings in your project. Follow this link
    https://developers.google.com/ar/develop/java/enable-arcore#ar-required_1

  2. Check Google AR services on your device is installed/updated.

  3. Check build.gradle file in your project
    dependencies {
    classpath 'com.android.tools.build:gradle:3.6.0'
    ...
    }

  4. Check gradle\wrapper - gradle-wrapper properties
    distributionUrl=https://services.gradle.org/distributions/gradle-5.6.4-all.zip

  5. Restart you project.

I hope this helps.

from model_viewer.dart.

ajay-k07 avatar ajay-k07 commented on June 3, 2024

i tried with your solution same problem again for me can you share your repo
or i will share mine please help me to fix https://github.com/ajailee/MyHome.git

from model_viewer.dart.

RenatBack avatar RenatBack commented on June 3, 2024

i tried with your solution same problem again for me can you share your repo
or i will share mine please help me to fix https://github.com/ajailee/MyHome.git

try to use this too

https://pub.dev/packages/arcore_flutter_plugin

from model_viewer.dart.

ajay-k07 avatar ajay-k07 commented on June 3, 2024

from model_viewer.dart.

ajay-k07 avatar ajay-k07 commented on June 3, 2024

from model_viewer.dart.

RenatBack avatar RenatBack commented on June 3, 2024

body: ModelViewer(
src: 'https://modelviewer.dev/shared-assets/models/Astronaut.glb',
alt: "A 3D model of an astronaut",
ar: true,
autoRotate: true,
cameraControls: true,
),

    1. change src        
    src: 'assets/MyModel.glb',
    
    2. add assets/MyModel.glb to pubspec.yaml like picture
    
    assets:
      - assets/MyModel.glb
      
   3. Save and restart   

from model_viewer.dart.

ajay-k07 avatar ajay-k07 commented on June 3, 2024

from model_viewer.dart.

RenatBack avatar RenatBack commented on June 3, 2024

try to add this to pubspec.yaml

webview_flutter: ^0.3.24

from model_viewer.dart.

ajay-k07 avatar ajay-k07 commented on June 3, 2024

from model_viewer.dart.

ajay-k07 avatar ajay-k07 commented on June 3, 2024

from model_viewer.dart.

Related Issues (20)

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.