Flutter | model_viewer_plus | Online objects from Web URL #4460
Replies: 2 comments 2 replies
-
Have you checked the JS console for errors? The most common issue is lacking CORS headers, which you set server side. |
Beta Was this translation helpful? Give feedback.
-
import 'package:flutter/material.dart'; void main() { class MyApp extends StatelessWidget { class MyHomePage extends StatefulWidget { class _MyHomePageState extends State { void _login() { @OverRide class MyMainPage extends StatelessWidget { |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Where I can place my 3D-model(glb) in online to read it in the next part of code?
I tried to place it here:
GitHub
https://github.com/ladonskliarov/test/blob/04c0b18e0b732f3f7d4f95891eee8d0ec9092a2c/Astronaut.glb
Firebase Storage
https://firebasestorage.googleapis.com/v0/b/personal-gym-ukr.appspot.com/o/poly.glb?alt=media&token=b0b10db8-e97b-4a8c-ac36-eafcddf8d928
Code part here:
body: const ModelViewer(
backgroundColor: Color.fromARGB(0xFF, 0xEE, 0xEE, 0xEE),
src: MY OBJECT SHOULD BE HERE,
alt: 'A 3D model of an astronaut',
ar: true,
arModes: ['scene-viewer', 'webxr', 'quick-look'],
autoRotate: true,
iosSrc: 'https://modelviewer.dev/shared-assets/models/Astronaut.usdz',
disableZoom: true,
),
I see nothing. There isn't any uploading under AppBar.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions