perf_diagnosis_demo
perf_diagnosis_demo copied to clipboard
A demo for diagnosing performance issues in Flutter code
Problem: When large images are used for thumbnails, the app consumes a lot of memory. Fix: Pre-scaling those images to be just large enough.
Problem: Using`LayoutBuilder` to scale a Flare animation (and likely any other kind of animation) result in a complete rebuild of the layout. Fix: Using [ScaleTransition](https://api.flutter.dev/flutter/widgets/ScaleTransition-class.html) instead.
ListView: Poor performance with many items + scroll bar (https://github.com/flutter/flutter/issues/52207)