At 21:25, why is it a performance improvement to break _buildLineWidget() out into a new StatelessWidget? Isn’t Padding (the parent of all 8 children) already a StatelessWidget? Why does wrapping Padding in a custom Widget reduce the number of widgets built?
I think if we break it into another widget instead of writing method inside old widget. Flutter can reuse the new widget because when Flutter checks it has a same runtime type. Please correct me if I am wrong, it's my guess :D
the reason is that usually an entire widget gets painted together. that's what the build method is for. if you have your own method that creates the widgets flutter can never know what it is building, and hence cannot apply any internal optimisations. it is therefore preferred to use stateless widgets instead of methods that return a widget
I think because it can reuse the same widget, because has basically no change in attributes or structure, so no need to recreate the render element for each rebuild
22:00 do I understand correctly then that using statelessWidget instead of method increases performance? So far, I tried to use methods wherever possible and tried to keep one stanelessWidget per page/view. Is this a bad practice?
Like you said that if we use stateless widget then all the child of it are considered as a single widget is rendered so is it same for a statefull widget also?
widgets use keys to cache whatever's not changing so it won't practically rebuild everything, but in the case of function-made widgets, everything is rebuilt
@@kazukihiromoshito2935 it does not use the keys, but rather the element and thus the render object. But determining if the widget needs another element or can just reuse the same element depends on the runtime type (and keys if present)
Hello, i am currently learning flutter , but i always come across things that i never knew i mean, there s always something else, and i am wondering where you guys learn all this ? University , bought courses, just documentation ? any advice how to gain this knowledge gradually and without anxiety ?
Any real official course/tutorial and actualization in all these years??? or flutter really die???? were i start in 2024???? (there is no guide only copy paste)
You may not know it yet but 2:20 is what you came here for.
that's a conspiracy theory 😜
I'm waiting for your ddd course
Thank you Filip and Flutter team!
At 21:25, why is it a performance improvement to break _buildLineWidget() out into a new StatelessWidget? Isn’t Padding (the parent of all 8 children) already a StatelessWidget? Why does wrapping Padding in a custom Widget reduce the number of widgets built?
I was thinking the same thing
I think if we break it into another widget instead of writing method inside old widget. Flutter can reuse the new widget because when Flutter checks it has a same runtime type. Please correct me if I am wrong, it's my guess :D
@@HoaHoang-qj1vl nah that's not the reason
the reason is that usually an entire widget gets painted together. that's what the build method is for.
if you have your own method that creates the widgets flutter can never know what it is building, and hence cannot apply any internal optimisations. it is therefore preferred to use stateless widgets instead of methods that return a widget
I think because it can reuse the same widget, because has basically no change in attributes or structure, so no need to recreate the render element for each rebuild
I like Filip's shirt with the bicycle 👌🏼
I really enjoyed this overview of all the great tools available for us right now
Flutter needs a beginner series. So newbies can learn from officials.
There is such a thing called "the boring show"
Definitely 👍
You may learn it by Max on Udemy
ruclips.net/video/x0uinJvhNxI/видео.html
@@vasylmayovets8778 I can highly recommend that !
22:00 do I understand correctly then that using statelessWidget instead of method increases performance? So far, I tried to use methods wherever possible and tried to keep one stanelessWidget per page/view. Is this a bad practice?
I was also wondering what he meant, because I don't think it makes any difference where the child widgets are built.
@@michasengotta2295It makes a different because flutter cant reuse those widget if they come from a method
Amazing talk! Very interesting points, hope to see more on this topic
Listview scrolling is still laggy for dynamic height items especially in Android. It is affecting the performance
Like you said that if we use stateless widget then all the child of it are considered as a single widget is rendered so is it same for a statefull widget also?
Nice & Important topic. Looking forward to such advanced important topics ahead.
Was thinking why everything looks so smooth, then I realized I'm on 2x playback 😂
Oh makes sense 😆 Like I was missing all the jank
I really enjoyed the video, quite informative. looking forward for new presentations. 👍
How does web scrapping work when using the flutter? Using if course the backend what is the best and easiest method in bring that in use?
Should I run profiling on old and new phones? Or not necessarily
w8, is this a reupload?
what is the tool filip is using to share phone screen?
I would like that 8hr+ workshop please. Even if broken up in separate sessions. 🙇🏻♀️
thank you!!! The presentation was great >3
When is the web app going to be released officially? I've been waiting over 1 year.
Good talk as always Filip
22:00 StatelessWidget is fater than function?
widgets use keys to cache whatever's not changing so it won't practically rebuild everything, but in the case of function-made widgets, everything is rebuilt
@@kazukihiromoshito2935 it does not use the keys, but rather the element and thus the render object. But determining if the widget needs another element or can just reuse the same element depends on the runtime type (and keys if present)
But I wish someone can help in analyzing the graph (jank), so that I can mitigate the sluggishness.
Hello, i am currently learning flutter , but i always come across things that i never knew i mean, there s always something else, and i am wondering where you guys learn all this ? University , bought courses, just documentation ? any advice how to gain this knowledge gradually and without anxiety ?
@@filiphracek4240 i do agree with that, but still there is not the feel of "gradual" progression, like legos , i guess its just me :(
@@filiphracek4240 wait are you the actual Filip? thats a huge honor if yes
@@wearecode9199 he is
@@wearecode9199 I'll suggest you try out video courses like Angela yu or udemy if you feel the documentation is too hard
@@sadhlife Been there done those - i am better know - thanks man
Thanks, Ninja.
When the sloth rotates I was like OK
Its slow
But when it fades away even slower that was the point I was like dammm.....
great talk!,was very interesting
9:25 😄
Awesome... Thank you
Any real official course/tutorial and actualization in all these years??? or flutter really die???? were i start in 2024???? (there is no guide only copy paste)
I wish if he didn't stop talking, Awesome
please show any object detection app with Tensorflow with Image annotation, model preparation, and model training.
That's a whole project in itself
Great tips!
Flutter is Amazing but Filip is more
Thank you - This is a lot to bag
Great video
👏👏👏👏
Hope u add Arabic Caption soon
Amazons Talk!
👍
Best
Very gooddddd