We have two different types of widgets in Florida.
First type is called status budget.
The second type is called State food budget.
In this video we talk about a stateless budget.
Stateless means we don't have a state and we need a state if we want to make all our widgets dynamic.
So statelets widget is basically a static widget which does not change.
So maybe a welcoming text which will always be the same could be a stateless widget and a button which
changes its appearance on the click for example that would be a stateful widget.
So basically what we do now is more or less some housekeeping.
We make a stateless widget and put our container in it and then run this statelets widget with our app.
Miss it.
So if you want to quickly make a stateless widget you type in S T L and you see statelets here.
You just click on this and you get a new class created.
We will talk about it in a moment and to just have to give it a name right here.
I just call it my stateless widget.
Then you see here we have an override.
We've got Messud film type widget called to a bit.
You've got some context here and we've got it returned.
So it returns containers.
So this Messud basically returns container as a widget.
And inside this container we can simply put ever seeing him.
So we copy this put a tear and then we just delete all container up here and we can simply say run app
and we create a new instance of my stay at loose digits by saying my statelets fidget and just call
it like this.
So this boot method is always important so you always have to use it and it's always overwrite because
it's from your stateless widget class.
So you are overwriting it here.
And we use context scan basically says it's in the context of a stateless budget.
And then we return our digits down here and we just return a container like we did before and give it
all call and or Chye it.
So if we look at it if we rerun it nothing would change.
But this is important for housekeeping so you can split up your cold bed and half bed parts of your
code and you just have to run your instance instances of your widgets up here.
So the app is reloaded and nothing has changed.
So it works perfectly.