omchiii / model_viewer_plus.dart

A Flutter widget for rendering interactive 3D models in the glTF and GLB formats.
https://pub.dev/packages/model_viewer_plus
Apache License 2.0
82 stars 47 forks source link

Works on web debug mode but not in production #95

Open ObiajuluM opened 8 months ago

ObiajuluM commented 8 months ago

When I run out locally it loads all the assets, buy when I push to firebase it doesn't load.

I am loading the files from lib/images/

mdembny commented 5 months ago

I have similar case. This is workaround for that. In my case my model is in assets/my_model.glb When you build web app flutter put my model into assets/assets/my_model.glb but package still try to find model in assets/my_model.glb so if you have flavours in your app you can, when you build release, add addition assets/ to your model path. then it should works.