Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Widget 的两种类型 #195

Open
platojobs opened this issue May 9, 2022 · 0 comments
Open

Widget 的两种类型 #195

platojobs opened this issue May 9, 2022 · 0 comments
Labels
MobileDevelopment iOS、安卓、Flutter、go

Comments

@platojobs
Copy link
Owner

platojobs commented May 9, 2022

出了 Widget 的两种类型,即:StatelessWidget 不带绑定状态,而 StatefulWidget 带绑定状态。当你所要构建的用户界面不随任何状态信息的变化而变化时,需要选择使用 StatelessWidget,反之则选用 StatefulWidget。前者一般用于静态内容的展示,而后者则用于存在交互反馈的内容呈现中。

@platojobs platojobs changed the title 😄 1 Jul 22, 2022
@platojobs platojobs changed the title 1 Widget 的两种类型 Mar 1, 2024
@platojobs platojobs added the MobileDevelopment iOS、安卓、Flutter、go label Mar 1, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
MobileDevelopment iOS、安卓、Flutter、go
Projects
None yet
Development

No branches or pull requests

1 participant