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

Publicado em: 19 Abril 2021
no canal de: 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...  


Nesta página do site você pode assistir ao vídeo on-line Flutter - ListView & ListView.builder Explained (+ How To Use It) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Flutter Mentor 19 Abril 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 11,858 vezes e gostou 244 espectadores. Boa visualização!