How Stateful Widgets Are Used Best - Flutter Widgets 101 Ep. 2

preview_player
Показать описание
What is a stateful widget? What is the difference between stateful and stateless widgets? How do state objects work? In episode 2 of Flutter Widgets 101, Andrew Brogdon answers these questions. Learn when to use a stateful widget and the inner workings of it by looking into the widget and element trees.


Resources:

Chapters:
0:00 - Intro
0:21 - Differences between stateful and stateless widgets
0:56 - StatefulWidget
6:08 - Why you won't make lots of stateful widgets

#Flutter
Рекомендации по теме
Комментарии
Автор

This is well explained Andrew, at a perfect speed, and helpful visuals. And I'm comparing to other Google Dev videos, so keep them coming!

NerdyTeachers
Автор

Simple and effective formal documentation on Flutter. This really helps! Thank you dev team.

kisotetsu
Автор

This is so satisfying to watch. All the docs I ever read and tried to understand put into one video. Please make this series a really long one. :-p

raveeshdotme
Автор

I just love how clear you guys explain everything. <3 Flutter

SEGVeenstra
Автор

Awesome tutorial !!! Simple, crisp and to the point !!!

jagdishshetty
Автор

Finally some information about why the overhead of a second class is even needed. Coming from React, it is quite confusing, especially because the "StatefulWidget" is actually immutable and stores all of the state within that subclass, that also acts as the element factory.

Noxoreos
Автор

Excellent Explanation, Thoroughly Enjoyed

bjugdbjk
Автор

that's exactly what i needed to understand the true nature of stateful
widget

medtay
Автор

I still think it's a bit weird how it's the state that's creating the child widgets, not the Stateful Widget Class itself, like Stateless Widgets do.

I mean, It makes sense considering how the classes are organized, but it's pretty weird naming-wise.

Pesthuf
Автор

Everyone: Developing apps is too hard for beginners
Flutter team : "Super Simple"
❤️❤️❤️

adityatajanpure
Автор

Best explanation EVER and why I love the flutter more and more. Great job bro. Send me a Flutter t-shirt

SuperMukthar
Автор

Hi!, i am wondering... how can i pass a parameter from the stateful widget' constructor to its state? eg: In the video example, pass a counter initial value from outside the itemCounter class.
Do i need to mantain all constructos parameters as final atributes in order to use them in the state?


I am just starting with Flutter. Very useful videos. Thanks in advance.

brunorolando
Автор

Thank you for the video. btw, Could anybody tell me what theme and font did Andrew use to demonstrate the codes?

dustinyu
Автор

Is such complexity of creating a notion of stateless and stateful necessary to create and manage such UI? Just wondering if it is necessary complication, since I'm still getting my head around this.

orjihvy
Автор

Best explanation of Stateful Widgets still

SergioArroyoSailing
Автор

i want a life cycle for a single screen, like when i go to from A screen to B screen then a OnPasue() method of Screen A should be call like in Android Studio, and when i move back to Screen A then its OnResume() will be call,
Any Idea?

mohsanikram
Автор

When we have StreamBuilders and the BLoC pattern, do we need stateful widgets?

roblyndon
Автор

hi, i am new to flutter, this whole thing is kinda causing me some headache and i would like some feedback
so i have this statefulwidget that gets a String name passed into it and then set the string to a card title
title: Text(
'${widget.name}',
),
like so, the issue its telling me
"Evaluation of this constant expression throws an
i know im missing something here, any help would be appreciated

youtube.com-handle
Автор

This video is unlisted before you view the comments. I hope this series have daily uploads

vinceramcesoliveros
Автор

Thanks a lot for this video. I am wondering about a third tree that Ian Hickson talks about: the render object tree. Why is it not in this video? Could one say, that the updated stateful widget (e.g. Tom: 1) is in reality a rendered object of the render tree? I am a little bit confused.

StopfiK