Skip to content

navigator 2.0 下 push 和 pop 都会重新rebuild #2

@AlanJN

Description

@AlanJN

您好,看了文章还有代码,自己也基于navigator2.0 实现一个路由管理。发现每次push和 pop都会rebuild ,用了router_expample代码也发现是这样 ,请问这个是合理的么?如果不合理,您是否有方案去避免这个?我看了官方issue 有人也问了这个问题, flutter/flutter#72487

下面j截图是代码
image

下面是log
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions