Lazy Flutter performance | Session

Flutter · 61K views · 2021 · 18:30

Open on YouTube

Software performance & optimizationWeb developmenttalk

Why Stack Overflow recommends it

Stack Overflow users link it when answering questions about laggy or slow Flutter lists, recommending lazy loading with ListView.builder.

Recommended by 3 people across 3 different months, 2021 to 2022.

What it is

An 18-minute Google I/O 2021 session by Justin McCandless of the Flutter team on performance with lazy-loaded content. It explains the limits of lazy loading in lists and how Flutter builds smooth scrolling experiences out of the box.

What people said

Recommends Aravinthan Subramanian · 2021-06 · Stack Overflow · on “Flutter Web not Scrolling”

I hope you know the command "flutter enable web". Maybe this is the reason for your web app behaves like mobile app. If not enabled web in your project then run that command. Another scenario is; Most of the flutter-web users facing the scrolling issue. But there is a temporary solution depends upon the number of items to be listed down. check out this youtube tutorial ( [this video] ), if the link is not working then search "lazy flutter performance" in youtube. Reply back if this helps you to solve the issue or share that how did you resolved the issue.

Recommends Aristidios · 2021-07 · Stack Overflow · on “Render an image only when it'll visible”

You'll need to use Listview.builder with itemBuilder instead of a child It will allow you to only render what is on the screen or what is likely to be on scrolled in the very near future - your performance will be considerably improved I recommend watching this video [this video] from the Flutter Team on this topic (lazy load a big list view) at flutter.io - if you'd like to go deeper into the topic [LINK]

Recommends Amr · 2022-03 · Stack Overflow · on “How to fix lagging issue in flutter”

You may need to lazily load your content inside the list, review this tutorial to know more: [this video] In general, if you want to know about your performance issues or where exactly some lagging or janks, you may need to use the profile mode to see what's going on, as this mode gives you the release performance with some tools to test your performance. More about profile mode: [LINK]