Flutter - 05. (2) Stateful Widgets
](
Generics
The above is good reference material as well.
![](
And this part here —
![](
If you notice it's exactly the same as what we saw in the Stateless widget, you can infer that it serves the same role.
However, since the Stateless post was written first,
![](
you might be wondering: "Do I always have to create a Stateless widget first in the main function?"
But creating a Stateful widget directly is perfectly fine too. So don't let that confuse you.
So far, we've taken a brief look at the structure of Flutter.
Starting next time, we'll dive deeper and actually look at how screens are composed.
However, if we just display text without any structure,
![](
you end up with this hideous screen.