Skip to content

Flutter 页面保持状态 #11

@devImpChen

Description

@devImpChen
  1. 一定要继承与StatefulWidget然后混入 AutomaticKeepAliveClientMixin
  2. 实现wantKeepAlive 方法 返回 true
  3. 切记如果使用的是PageView 那么 需要使用PageView.build方法!

Metadata

Metadata

Assignees

No one assigned

    Labels

    FlutterFlutter笔记集合

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions