model_viewer_plus.dart icon indicating copy to clipboard operation
model_viewer_plus.dart copied to clipboard

State change causes the src to download again

Open xhayankhan opened this issue 3 years ago • 1 comments

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

xhayankhan avatar Jul 11 '22 07:07 xhayankhan

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.

KidGbzin avatar Aug 20 '22 16:08 KidGbzin