What is the relation between stateful and stateless widgets in Flutter?

前端 未结 14 1895
悲&欢浪女
悲&欢浪女 2020-12-02 07:06

A stateful widget is defined as any widget which changes its state within its lifetime. But it is a very common practice for a StatelessWidget to have a S

14条回答
  •  臣服心动
    2020-12-02 07:44

    What are Stateful and Stateless widgets?

    Stateless Widget : Stateless widget are builds only when it is of parent changes.

    Stateful Widgets : State full widgets holds state of the widget and can be rebuild when the state change.

提交回复
热议问题