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,
the embedded quiz gets reset every time when we scroll
some embedded components like Circuit Preview, and Images get reloaded every time the scroll position changes.
It slows down the app and consumes much higher ram and network bandwidth
Describe the solution you'd like
The initial problem that I found is the below code snippet [of this file]
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.
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] 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