Тёмный

Flutter LONG LIST. Memory Efficient dynamic ListView tutorial: Flutter Dart Tutorial #2.8 

Smartherd
Подписаться 136 тыс.
Просмотров 59 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 52   
@owonubijobsunday4764
@owonubijobsunday4764 4 года назад
Okay, here we go. I got a video from a friend and I saw how exciting it was. You made the definition of "complex" to be something else. Having watched the video, I vowed to look for your channel. I've watched all your playlist on Flutter but I can't comment on it all. So, here's an appreciation from A Nigerian friend. Thanks for all you do. You're appreciated. Thanks once again 😀😍😘😎
@owonubijobsunday4764
@owonubijobsunday4764 3 года назад
@Anaeze Somto 😂
@VishalDesai711
@VishalDesai711 5 лет назад
You were born with teaching talent. Keep up good work.
@demotics2005
@demotics2005 Год назад
Thank you so much! You are very good. Lessons are clear and succinct. You are very helpful
@domainadministrator2768
@domainadministrator2768 5 лет назад
Very nice tutorials. I have completed Dart tutorials and now on Flutter. Very clear and concise. Keep up the good work. Just a small thing, add itemCount = 100 to item builder in order to limit the list to 100 items, otherwise it was giving error on android emulator when the list is scrolled.
@krishnakumarramachandran5888
@krishnakumarramachandran5888 5 лет назад
inside ListView.builder add itemCount: 100, it will solve the error.
@umer_yaseen
@umer_yaseen 3 года назад
@@krishnakumarramachandran5888 Thanks, man! I was facing this error. And my issue got resolved because of you. Thanks Again
@umer_yaseen
@umer_yaseen 3 года назад
@@krishnakumarramachandran5888, Can you please tell me that is it possible to design the items of the long list individually? if it is then how can I do that?
@krishnakumarramachandran5888
@krishnakumarramachandran5888 3 года назад
@@umer_yaseen Listview.builder will build all the items individually
@rahulvashishth8551
@rahulvashishth8551 5 лет назад
itemBuilder: (context, index) ====> here, please explain how context and index will be resolved. what is index element and how this is called and how the value of index is decided?
@Solar546
@Solar546 6 лет назад
you are a great teacher! i love this Flutter serie
@smartherd
@smartherd 6 лет назад
Thanks
@PivotGuy888
@PivotGuy888 5 лет назад
Your videos are cool, but could you tell me where the index comes from? I mean where are we giving it to the itemBuilder, or which function or Widget do that?
@ritheshjarvis4177
@ritheshjarvis4177 3 года назад
Thanks man
@s_nawaz
@s_nawaz 4 года назад
My debugPrint is not working with the list view. It is also not showing any error.
@syedimam1998
@syedimam1998 4 года назад
please make a video on build method , Builder, build context, context it is so confusing. please
@michaelb2793
@michaelb2793 5 лет назад
var listView = ListView.builder( itemCount: (listItems.length),
@mklion03
@mklion03 5 лет назад
I got everything you taught except from one thing that what actually context and build context arguments does?
@mastercheetos4422
@mastercheetos4422 5 лет назад
I didn't understand too.
@muhammadfaizan2461
@muhammadfaizan2461 5 лет назад
Hello there First of all thanks for your efforts I wanted to notify that you forgot to add itemCount in ListView.builder() constructor which causes RangeError(index ) error
@ApoorvPandeyDev
@ApoorvPandeyDev 4 года назад
Awesome awesome awesome!
@josejaimes4965
@josejaimes4965 5 лет назад
Great tutorial! The additional information is the same as previous listeners have made. How do I do to control the red screen when the index > 1000 ?
@alexcosta9185
@alexcosta9185 3 года назад
i have got same problem if you have find solution then kindly tell me
@MrDyll
@MrDyll 4 года назад
you are a god
@Nithinjith1988
@Nithinjith1988 5 лет назад
Is it possible to make a Toast instead of debugPrint()? That will be more meaningful. I don't know whether we can make a toast in flutter.
@nirjanmunshi9334
@nirjanmunshi9334 5 лет назад
don't know why but if i want the list item count 100, it shows error after item 99 and the error is RangeError (index) : Invalid Value: Note in range 0.99, inclusive 100
@CanRau
@CanRau 5 лет назад
As mentioned by Mohammad Faizan in the first comment you have to add "itemCount: listItems.length" to ListView.builder() like shown here stackoverflow.com/a/53968166
@md.nazmulislam2408
@md.nazmulislam2408 4 года назад
@@CanRau Thanks brother
@nabinkhatiwada5680
@nabinkhatiwada5680 5 лет назад
How to implement LongList or ListView from below some widgets. Suppose if I have: Widget 1 Widget 2 Widget 3 I want to implement LongList from below widget 3. Whenever I try to implement ListView below widget 3, the screen is blank, nothing appears. What might be the reason?
@MsSplashIt
@MsSplashIt 6 лет назад
Great video. Keep it up
@smartherd
@smartherd 6 лет назад
thanks a lot. Good morning
@refreshing_morning
@refreshing_morning 6 лет назад
Nice video. Can each ltem in the long list have their own name. Also can I assign an ontap function to different items when click..according to the video the ontap function was applied to all the items.
@smartherd
@smartherd 6 лет назад
Yes. Check the immediate previous video to see how to use on tap on single element
@refreshing_morning
@refreshing_morning 6 лет назад
Thanks
@MdYousuf-gw2dn
@MdYousuf-gw2dn 4 года назад
what i have to do if i want to show 1000 different string? do i have to change inside generate? and how? can anyone explain please
@lyboung8749
@lyboung8749 5 лет назад
What we gonna do with context?
@mithuns8410
@mithuns8410 4 года назад
I am getting an error "The method builder is not defined for the class ListView"
@testtest-yt6ss
@testtest-yt6ss 5 лет назад
Hello How do I display list elements randomly?
@krishnakumarramachandran5888
@krishnakumarramachandran5888 5 лет назад
i'm trying same in my android studio, after item 999 RangeError (index): Invalid value: Not in range 0..999, inclusive: 1000
@krishnakumarramachandran5888
@krishnakumarramachandran5888 5 лет назад
after adding itemcount property inside ListView.builder, i solved the error.
@likhithswaroop767
@likhithswaroop767 4 года назад
Hello , So i started learning flutter and i was watching this video and when i typed the codes and tried executing it , i found this following error : Compiler message: lib/Home.dart:22:13: Error: The argument type 'List' can't be assigned to the parameter type 'Widget'. - 'List' is from 'dart:core'. - 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart'). body: getListElements(), ^ Please follow back. Thank you !
@akashtdm
@akashtdm 4 года назад
body: should contain a widget. but u have called the function getListElements() that returns a list of string ,which is not a widget!
@akashtdm
@akashtdm 4 года назад
instead use a function that return a widget and it will work fine
@likhithswaroop767
@likhithswaroop767 4 года назад
@@akashtdm Oh okay , & yes i did it . Now its working fine , Thanks a lot !
@akashtdm
@akashtdm 4 года назад
@@likhithswaroop767 ❤️🖤
@dip1410
@dip1410 3 года назад
ItemCount missing..
@giduduwisdomnico3206
@giduduwisdomnico3206 5 лет назад
best
@marcelojuancabreragutierre2460
@marcelojuancabreragutierre2460 3 года назад
List long with images.
@karimovitche
@karimovitche 6 лет назад
Nice, but very fast
@m.blu.
@m.blu. 5 лет назад
at the end of the list I got a "RangeError (index)". how could I end the list with the last element?
Далее
Handsoms😍💕
00:15
Просмотров 4,8 млн
She Couldn’t Believe I Did This! 😭 #shorts
00:12