model_viewer_plus.dart
model_viewer_plus.dart copied to clipboard
State change causes the src to download again
wheneveri tap on the increase quantity button and the state of quantity increases in short the state of the screen changes the model is downloaded again.
https://user-images.githubusercontent.com/87603317/178215735-a8fbd1d2-0643-4236-b359-735a34dcce06.mp4
You must use a listener to update only your changeable widget, setState() when called rebuild the tree on the actual view.
In other words, rebuild ModelViewer again.