getx
getx copied to clipboard
How can i force update the Obx value?
i have a linearprogressindicator to show the progress of uploading a file in my app.

i've tried to log the value inside my function. turns out Obx widget only rebuild 2x, first and last. may be it is because "lazy" update feature on getx.
the red arrow shows log from Obx() widget.
but i wanna rebuild as fast as i want. how can i do that ?
i have a linearprogressindicator to show the progress of uploading a file in my app.
i've tried to log the value inside my function. turns out Obx widget only rebuild 2x, first and last. may be it is because "lazy" update feature on getx.
the red arrow shows log from Obx() widget.
but i wanna rebuild as fast as i want. how can i do that ?
Get.update(); Or Get.forceAppUpdate()
Force update the variable.
stnkUpload.refresh();
Force update the variable.
stnkUpload.refresh();
Thanks worked for me