开发者社区 问答 正文

Adapter解决Component模型的哪些问题?

Adapter解决Component模型的哪些问题?

展开
收起
游客cum3jectrqmmy 2022-01-08 11:10:19 606 分享 版权
来自: 闲鱼技术
1 条回答
写回答
取消 提交回答
  • 解决了以下三个问题:

    1.将—个"Big- Cell" 放在 Component 里,无法享受ListV iew 代码的性能优化。

    2.Component无法区分appear disappear 和 init dispose 。

    3.Effect 的生命周期和 View 的耦合,在 ListView 场景下不符合直观的预期。

    资料来源:《闲鱼Flutter技术解析与实战》,下载链接为:https://developer.aliyun.com/topic/download?id=19。

    2022-01-08 15:17:25
    赞同 展开评论
问答地址: