drydart / model_viewer.dart

A Flutter widget for rendering interactive 3D models in the glTF and GLB formats.
https://pub.dev/packages/model_viewer
The Unlicense
209 stars 101 forks source link

Blank Screen Running on IOS #25

Open karasu1 opened 3 years ago

karasu1 commented 3 years ago

Hello Guys I got this kind of error when first time to run the Model-Viewer in IOS, tried to run in Android it's worked fine, but nothing show in IOS, is it implemented in IOS or is it the WebView from IOS is not supported??(try with chrome installed, read from previous issue, but nothing happens)

To reproduce Steps to reproduce the behavior:

just putting this kind of code in my project:

Scaffold(
        body: ModelViewer(
           src: src,
          iosSrc: 'https://modelviewer.dev/shared-assets/models/Astronaut.usdz',
          ar: true,
          autoRotate: true,
          cameraControls: true,
          backgroundColor: Colors.white,
          autoPlay: true,
          autoRotateDelay: 1500,
          arScale: 'auto',
        ))

with src: http://xxx/3dobject/Astronaut.glb --> this is on local server then flutter run

LogCat:

Launching lib/main.dart on xxx’s iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: xxxx
Running Xcode build...
Xcode build done.                                           18.2s
Installing and launching...
Waiting for xxx’s iPhone to report its views...
Debug service listening on ws://localhost:52430/ws
Syncing files to device xxxs iPhone...
flutter: >>>> ModelViewer initializing... <http://127.0.0.1:50045/>

ScreenShot This is the SS I got from my Real Device

IMG_0052

Device Info I'm using real device iPhone XR to compile Screen Shot 2021-02-02 at 09 31 12

Additional context I have put the requirement according from this site request Screen Shot 2021-02-02 at 09 48 18