Stateless vs. Stateful | Flutter Basics
ฝัง
- เผยแพร่เมื่อ 10 ก.ย. 2024
- Stateless vs. Stateful | Flutter Basics
The main two widgets in flutter are called stateless and stateful widgets. Almost every widget in flutter is based of a stateless or stateful widget. In this video we go into a deep dive into what exactly that is and how it works. When you should use which one? How does it affect the app running?
Link to the Code:
github.com/tad...
Make sure to Like and Share!
And pls subscribe: shorturl.at/dsIO9
Thanks For Watching!
Laptop I use for drawing, recording, and editing:
Lenovo Thinkpad X1 Yoga: amzn.to/2RqFB8U
Super cheap, quality mouse. And batteries last forever:
VicTsing: amzn.to/2UWUimf
Docking station to keep everything organized:
Dell: amzn.to/3ea0sao
Also my favorite book ever, just so more people can read it :)
Brave New World by Aldous Huxley: amzn.to/3c7o91c
#flutter #stateless #stateful #widgets
Direct to the point, easy to understand for beginner level.
Oh man looking back on this 2 years later, this mic did not sound good 🤣
Such a wonderful and practical explanation of stateless and stateful widgets.
ooooh man u got me with the grammar.... at 1:29 Stateless "has no changing state...." and Stateful which "HAVE a changing state"... right there u gained some respect ***** from me.
Haha thanks man! I really try to make it as simple as I can and I’m glad it helps some people 😊
Thanks! The sound is good enough, don't worry.
Awesome! Thank you for the feedback!!
Very clear
thank you. now this is much clearer.
Ohhh Now i get it! Very help full. Before this video i thought that my whole app will consist of one of those widgets :D And i was thinking which one to use :D
Glad I could help. Video coming on Friday will explain it even more I think
Simple and Understandable. Thank you
Great video. Definitely release more!
Definitely planning on it! My schedule is every Tuesday and Friday. That's as much as I can manage right now
thanks very much, very useful lesson!
Great explained! Thanks
i love you man thx
i want to ask why bool liked =false ?
Thanks for the video! I just wonder why is 'homescreen' stateless? Since the stateful Icon is part of the home screen, so shouldn't that make the homescreen also stateful?
No, only the part of the code that needs to hold state needs to be stateful. So we only want the icon to have state, not the whole screen. This of course doesn't matter too much with a small app, but when it comes to big apps, using less stateless will have a slight bump in performance
Hey bro, Loved the way you explain, first time on this channel, might give it more visits :p Thank you!
best video
Thank you so much!
great video!
Great video!
Thank you so much! I appreciate it!!
@@tadaspetra i'm not kidding lol, you helped make a weather app. I got the api to set state but the data wasn't showing because I didn't know what I was doing lol
That's awesome. Glad I could help!
Great video but sound is horrible.
Yea this was one of my first ones. I didn’t know what I was doing haha. It’s gotten better now I promise
Your voice need to be higher xD
haha this was when I first started, I think it's a bit better now