Flutter - ListView & ListView.builder Explained (+ How To Use It)

Published: 19 April 2021
on channel: Flutter Mentor
11,858
244

ListView or ListView.builder, which one to use and how to use them?

Well, many times in your Flutter journey, you'll need to use lists. I

f you need to use a really big and huge list, ListView.builder() is your friend!

Not only will it make your app perform better, it will remarkably shorten the amount of code you'll need.

Now the regular ListView is also useful, of course. But only for short/small predictable lists.

If you don't know in advance how many items a list will have, always go with a ListView.builder, as it will only render what is visible in the viewport, making the entire process much more optimal. Thanks Flutter team!

ListView Class official documentation: https://api.flutter.dev/flutter/widge...

00:00 - Intro
00:25 - Documentation Definition Explained
01:47 - Learning By Doing
02:30 - ListView Example (+ Spread Operator)
03:03 - ListView Error Example
03:40 - ListView "reverse" Property
04:12 - ListView.builder Explained
07:00 - ListView.builder Usage Example
08:18 - ListView.builder Error Example
08:49 - Like & Subscribe
09:06 - Flutter Mentor Out

#flutter #listview #listviewbuilder

Credits:

OUTRO SONG:
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library    • Mitsubachi – Smith The Mister (No Cop...  


On this page of the site you can watch the video online Flutter - ListView & ListView.builder Explained (+ How To Use It) with a duration of hours minute second in good quality, which was uploaded by the user Flutter Mentor 19 April 2021, share the link with friends and acquaintances, this video has already been watched 11,858 times on youtube and it was liked by 244 viewers. Enjoy your viewing!