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

Added onProgress, onLoad, onError callback in ModelViewer #64

Open ahmadhassan-dev opened 2 years ago

ahmadhassan-dev commented 2 years ago

I have added the functionality of onProgress, onLoad, onError callbacks in ModelViewer Packages,

1) It allow us to get the percentage of 3D model loads using onProgress callback 2) It notify us that your 3D model loads using onLoad callback 3) It notify us if any error occurs while loading 3D model loads using onError callback