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

  Рет қаралды 11,858

Flutter Mentor

Flutter Mentor

Күн бұрын

Пікірлер: 30
@jafarimamaliyev1736
@jafarimamaliyev1736 2 жыл бұрын
The best mentor, keep going bro, you are amazing!
@fixeroftheinternet
@fixeroftheinternet 2 жыл бұрын
I am very experienced developer but new to flutter. I have just subscribed to the channel becuase this not only knows his stuff, but is a really good communicator
@FlutterMentor
@FlutterMentor 2 жыл бұрын
Wow, thank you so much for the compliment. To be honest, I have a job in an entirely different industry and I myself only learned Flutter (Mobile Apps-wise) and they kept making changes after changes and I couldn't keep up with it so ended up just abandoning the project of this channel. My videos are less than 2 years old but a lot of them are not relevant anymore because of all the changes the Flutter team has been making. Even many great full courses on Flutter are now super outdated unfortunately. But truly appreciate your idea! It's definitely a good one
@fixeroftheinternet
@fixeroftheinternet 2 жыл бұрын
@@FlutterMentor Nearly all the flutter examples you find online including online tutorials are out of date, but they are still extremely useful. They won't work out of the box, but if you are learning flutter like me you learn to cope with that. Again, I beleive if you get a membership with Johannes Milke you get access to the latest version of his code examples. Another thing you do.
@AhmedAshrafMo
@AhmedAshrafMo 2 жыл бұрын
That's the video i was searching for.. Thanks a lot, you said what i needed to understand.
@hsiang-yehhwang2625
@hsiang-yehhwang2625 2 жыл бұрын
Incredible explanation!! The concept is so clear!! Thanks!!
@josedavidmonterourena3378
@josedavidmonterourena3378 3 жыл бұрын
Incredible explanation. Thanks!
@FlutterMentor
@FlutterMentor 3 жыл бұрын
Thank you, I appreciate it!
@ha7281
@ha7281 3 жыл бұрын
incredibly helpful. thank you so much
@FlutterMentor
@FlutterMentor 3 жыл бұрын
Glad it was helpful!
@bakka_sheep
@bakka_sheep 2 жыл бұрын
very helpful. thank you !
@jackodhiambo5710
@jackodhiambo5710 3 жыл бұрын
Thanks for that. best explanation
@FlutterMentor
@FlutterMentor 3 жыл бұрын
thanks for watching!
@chabin57
@chabin57 2 жыл бұрын
thanks
@akshayjagtap7613
@akshayjagtap7613 2 жыл бұрын
How to add image and video in listview and show one at a time??
@saurabhjadhavv
@saurabhjadhavv 3 жыл бұрын
Hey 👋🏻 brother ! Please in next video use Search Delegate !!
@FlutterMentor
@FlutterMentor 3 жыл бұрын
THank you for the suggestion! I will look into that
@jamesr2408
@jamesr2408 3 жыл бұрын
I have searched for 2 weeks no answers for how the get index of clicked item from listview builder. The builder obviously knows the index of the items but is not sharing this info. There seems to be no way of accessing it for use in nested lists. Nested list means. Click and item, leads to another list, which leads to another list, typical in database structure.
@FlutterMentor
@FlutterMentor 3 жыл бұрын
That does seem challenging. Have you tried creating a variable and then storing the index in that variable? For example, create a variable called "indexOfTappedElement" and then, on the onPress you just say indexOfTappedElement = index; I never had to do such a thing. Not sure if that would take into account all of the elements or just the one you tapped. Would have to test if it works or not, but it would be worth a try.
@jamesr2408
@jamesr2408 3 жыл бұрын
Flutter Mentor, siteData.sites[index]; Adding the above code immdediately under itemBuilder worked. Note .sites is the list of my data I am trying to access contextually. class _SiteListState extends State { @override Widget build(BuildContext context) { return Consumer(builder: (context, siteData, child) { return ListView.builder( itemBuilder: (context, index) { siteData.sites[index]; // NOTE: widget.sites replaced with: Provider.of(context).sites
@doulainc.498
@doulainc.498 3 жыл бұрын
can u guide me on how to display a firestore list with conditions. in such a manner that it either displays A snapshot or B snapshot. im trying to have two documents snapshot mixed together. please help. i have spent five days already clueless working on school project
@FlutterMentor
@FlutterMentor 3 жыл бұрын
I wish I could, but I really wouldn't feel comfortable tutoring firestore related stuff. I just don't think I have enough knowledge on using it
@doulainc.498
@doulainc.498 3 жыл бұрын
@@FlutterMentor it's alright sir, no problem at all. At the end of the day, I was able to implement it. Thanks for ur concern. Really appreciate
@FlutterMentor
@FlutterMentor 3 жыл бұрын
@@doulainc.498 Awesome. Happy to know that! Wish you a great day
@doulainc.498
@doulainc.498 3 жыл бұрын
@@FlutterMentor thank u, wish u same ❤️🙌🏾
@allplsqlconcepts9876
@allplsqlconcepts9876 3 жыл бұрын
Please help me as I am getting the below errors:- Error: The parameter 'name' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. MyTiles({this.name, this.color}); ^^^^ Error: The parameter 'color' can't have a value of 'null' because of its type 'Color', but the implicit default value is 'null'. - 'Color' is from 'dart:ui'. Try adding either an explicit non-'null' default value or the 'required' modifier. MyTiles({this.name, this.color}); ^^^^^
@FlutterMentor
@FlutterMentor 3 жыл бұрын
Hey, do you have a repository of your project? It's hard to help just from the error message but it seems that you're not actually giving any values to your parameters
@allplsqlconcepts9876
@allplsqlconcepts9876 3 жыл бұрын
@@FlutterMentor No issue, problem got solved. Now the syntaxes have changed a bit like in this case - the constructor can be defined as MyTiles(this.name, this.color), instead of MyTiles({this.name, this.color})
@FlutterMentor
@FlutterMentor 3 жыл бұрын
@@allplsqlconcepts9876 Ah, ok I got it. So, if you do it like this "MyTiles({this.name, this.color})", when you use it later, you have to name the parameters, because this is a named constructor (so, you'd say like MyTiles(name: 'A name', color: Colors.red); If you do it like this "MyTiles(this.name, this.color)", then you don't use named parameters. Instead, they are positional parameters, meaning that now the order matters. (in named parameters the order does not matter). So, it would go MyTiles('A name', Colors.red);
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 19 МЛН
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН
Flutter Widget Basics: ListView | Builder, Separator
9:37
Learn Flutter with Me
Рет қаралды 11 М.
Flutter Tutorial for Beginners #34 - List View Builder
9:50
Net Ninja
Рет қаралды 234 М.
ListView.builder Flutter Tutorial for Beginners
13:09
Flutter Mapp
Рет қаралды 26 М.
LISTVIEW & BUILDER • Flutter Widget of the Day #04
9:06
Mitch Koko
Рет қаралды 136 М.
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 261 М.
Flutter ListTile Widget Tutorial | Flutter Widget Explained
9:27
Pradip Debnath
Рет қаралды 18 М.
Building a Mobile App in 2024: The BEST Technologies
13:31
Dan Ilies
Рет қаралды 52 М.
Flutter - DropdownButton Example Tutorial For Beginners
11:08
Flutter Mentor
Рет қаралды 897
Flutter ListView onTap send selected item data to next screen
12:06
Proto Coders Point
Рет қаралды 43 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН