Stateless vs. Stateful | Flutter Basics

  Рет қаралды 12,542

Tadas Petra

Tadas Petra

4 жыл бұрын

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/tadaspetra/flutter...
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

Пікірлер: 30
@tadaspetra
@tadaspetra Жыл бұрын
Oh man looking back on this 2 years later, this mic did not sound good 🤣
@ujjwalbansal1070
@ujjwalbansal1070 2 жыл бұрын
Such a wonderful and practical explanation of stateless and stateful widgets.
@qubee-tech
@qubee-tech Жыл бұрын
Simple and Understandable. Thank you
@smiljantukic
@smiljantukic 10 ай бұрын
Great explained! Thanks
@savvybites1844
@savvybites1844 2 жыл бұрын
thank you. now this is much clearer.
@morrigan_ghost
@morrigan_ghost 2 жыл бұрын
thanks very much, very useful lesson!
@timhubbard1326
@timhubbard1326 4 жыл бұрын
Great video. Definitely release more!
@tadaspetra
@tadaspetra 4 жыл бұрын
Definitely planning on it! My schedule is every Tuesday and Friday. That's as much as I can manage right now
@LauxKanal
@LauxKanal 2 жыл бұрын
i love you man thx
@someguy007
@someguy007 3 жыл бұрын
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.
@tadaspetra
@tadaspetra 3 жыл бұрын
Haha thanks man! I really try to make it as simple as I can and I’m glad it helps some people 😊
@Proviper666
@Proviper666 3 жыл бұрын
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
@tadaspetra
@tadaspetra 3 жыл бұрын
Glad I could help. Video coming on Friday will explain it even more I think
@tanaykamath1415
@tanaykamath1415 2 жыл бұрын
great video!
@Jumbo1907
@Jumbo1907 4 жыл бұрын
Thanks! The sound is good enough, don't worry.
@tadaspetra
@tadaspetra 4 жыл бұрын
Awesome! Thank you for the feedback!!
@Ezzedini
@Ezzedini 2 жыл бұрын
Hey bro, Loved the way you explain, first time on this channel, might give it more visits :p Thank you!
@Salehalanazi-7
@Salehalanazi-7 4 жыл бұрын
Great video!
@tadaspetra
@tadaspetra 4 жыл бұрын
Thank you so much! I appreciate it!!
@Salehalanazi-7
@Salehalanazi-7 4 жыл бұрын
@@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
@tadaspetra
@tadaspetra 4 жыл бұрын
That's awesome. Glad I could help!
@50cents668
@50cents668 2 жыл бұрын
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?
@tadaspetra
@tadaspetra 2 жыл бұрын
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
@brunoeigenmann1667
@brunoeigenmann1667 2 жыл бұрын
best video
@tadaspetra
@tadaspetra 2 жыл бұрын
Thank you so much!
@minigames5132
@minigames5132 3 жыл бұрын
i want to ask why bool liked =false ?
@swagrip1931
@swagrip1931 3 жыл бұрын
Great video but sound is horrible.
@tadaspetra
@tadaspetra 3 жыл бұрын
Yea this was one of my first ones. I didn’t know what I was doing haha. It’s gotten better now I promise
@miguelalvesmiguel7688
@miguelalvesmiguel7688 3 жыл бұрын
Your voice need to be higher xD
@tadaspetra
@tadaspetra 3 жыл бұрын
haha this was when I first started, I think it's a bit better now
Navigation | Flutter Basics
23:42
Tadas Petra
Рет қаралды 9 М.
Stateless vs Stateful | Flutter Example
6:45
Learn Flutter with Me
Рет қаралды 18 М.
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 22 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 15 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 32 МЛН
Rendering - Flutter Deep Dive
8:28
Tadas Petra
Рет қаралды 10 М.
Stateful vs Stateless Applications (Explained by Example)
14:44
Hussein Nasser
Рет қаралды 197 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 544 М.
Is Jaspr better than Flutter Web?
6:03
Tadas Petra
Рет қаралды 3,9 М.
Avoid using StatefullWidget!
3:50
Codrut Erdei
Рет қаралды 8 М.
Unit Tests and Mocking with Flutter
12:29
Tadas Petra
Рет қаралды 11 М.
Best 30 Flutter Widgets, Packages & Tips
5:11
Flutter Mapp
Рет қаралды 119 М.
Stateless vs Stateful Widgets - Flutter Explained - Level: Beginner
9:50
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 22 МЛН