1. KeepAlive

源码 KeepAlive AutomaticKeepAlive详解

  1. 在列表项Widget的State中混入AutomaticKeepAliveClientMixin。
  2. 覆写wantKeepAlive返回true。
  3. 在build()内调用super.build(context)。

results matching ""

    No results matching ""