• Adam Barth's avatar
    Nesting MaterialApps should not assert (#4636) · e071f0ba
    Adam Barth authored
    Turns out we weren't managing focus correct between navigator routes because we
    were missing a Focus widget above the routes. However, adding this widget
    caused us to explode at startup because the initial route was trying to move
    focus during the build phase.
    
    This patch teaches Focus to have an initiallyFocusedScope, which can be use to
    initialize the child focus scope.
    
    Fixes #4065
    e071f0ba
app_test.dart 900 Bytes