I met

Six months ago, Flutter was very popular. I should learn it too.

Step 1, recognize the StatefulWidget and StatelessWidget.

A StatefulWidget is a stateless Widget, and a StatefulWidget is a StatefulWidget.

Meng…

Step 2, the StatelessWidget subclasses have… The subclasses of StatefulWidget are…

Two meng…

Third, let’s learn about widgets from the source code

Three meng… Single…

To know

These days according to the data to learn control, found

The StatefulWidget has a setState() method, and the StatelessWidget has no setState() method.

Whenever you want to refresh text, color, data, etc., you should definitely call the setState() method, which is defined as a StatefulWidget. You don’t need this method to define a StatelessWidget.

I’m not sure if I want to define it as a StatelessWidget. Change the StatefulWidget as needed

ohhhhhh

Over.

I hope I can gradually learn to have a deeper understanding.