CircuitVerse / mobile-app

Mobile App for CircuitVerse
https://play.google.com/store/apps/details?id=org.circuitverse.mobile_app
MIT License
73 stars 94 forks source link

Update State Management of Interative Book #251

Closed tanmoysrt closed 1 year ago

tanmoysrt commented 1 year ago

Is your feature request related to a problem? Please describe. In the Interactive book, if we scroll, the scroll controller listener functions are rebuilding the whole screen. That is causing lagginess in the app. As an effect,

Describe the solution you'd like The initial problem that I found is the below code snippet [of this file] image It every time rebuild UI, but actually, a full-screen rebuild is not required, the buttons themselves need to be only rebuilt. with setState, we can not achieve that. Do, We need to convert the state updates logic from setState to Provider.

Are you working on this? (Yes/No) Yes

tanmoysrt commented 1 year ago

@manjotsidhu @aman-singh7 can you pls take a look !

manjotsidhu commented 1 year ago

@Tanmoy741127 Please go ahead and work on this issue

tanmoysrt commented 1 year ago

@manjotsidhu thanks !