• Adam Barth's avatar
    Improve Route lifecycle (#7526) · 23361d5a
    Adam Barth authored
    Previously the navigator wouldn't always call Route.dispose when it was
    removed from the tree. After this patch, the navigator remembers popped
    routes so that it can call dispose on them when it is removed from the
    tree.
    
    Also, improve some error messages around calling dispose() more than
    once on routes and AnimationControllers.
    
    Fixes #7457
    23361d5a
routes_test.dart 9.67 KB