16. The life cycle of Widget in the Flutter learning path

Android Flutter: Graphic and text detailed explanation of the life cycle of the component Widget
Forward the post of the big guy for recording and learning.

type

There are two types in Flutter Widget, one is stateful Widget( StatefulWidget), and the other is stateless Widget( StatelessWidget).
For a detailed explanation of stateful and stateless, please see 10. StatefulWidget Stateful Components of Flutter Learning

Widget

The life cycle starts from StatefulWidget.createState()the beginning, as follows:
insert image description here

Introduction to Lifecycle Methods

insert image description here

Guess you like

Origin blog.csdn.net/weixin_44710164/article/details/104739410