Flutter - stateless vs stateful

Hot reload: 自動更新。(儲存後自動reload)

☝stateless widgets :the state of the widget cannot change over time.  快速鍵stless 

☝stateful widgets: the state of the widget can change over time. If a widget can change—when a user interacts with it. 與使用者互動時,部件能有所變化。 反之,則使用stateless即使。

☝Row()


Comments

Popular posts from this blog

Go-VSCode -Autocomplete and Auto-import

Dart syntax - initSate,Build,deactive, Dispose