MediumScenarioFlutter and React Native scenarios
A Flutter list screen janks while scrolling hundreds of items. How do you fix it?
What a good answer covers
Profile with DevTools, use ListView.builder for lazy building, add const constructors, avoid rebuilding large subtrees by scoping state, cache images and move heavy work off the UI isolate with compute.
PreviousPOC: build a small app that lists posts from an API with offline cachingNext What is the difference between StatelessWidget and StatefulWidget in Flutter?
More on Flutter and React Native scenarios
Flashcards for this topic- MediumWhat is the difference between StatelessWidget and StatefulWidget in Flutter?
- HardA Flutter app's state is scattered and hard to test. What do you propose?
- MediumA React Native screen is slow because of too many re-renders. What do you do?
- HardExplain React Native's new architecture (JSI, Fabric, TurboModules).