• Adam Barth's avatar
    Improve focus management (#9074) · 89aaaa9c
    Adam Barth authored
    We now have an explicit focus tree that we manage. Instead of using
    GlobalKeys to manage focus, we use FocusNode and FocusScopeNode objects.
    The FocusNode is Listenable and notifies when its focus state changes.
    
    Focus notifications trigger by tree mutations are now delayed by one
    frame, which is necessary to handle certain complex tree mutations. In
    the common case of focus changes being triggered by user input, the
    focus notificiation still arives in the same frame.
    89aaaa9c
tree_diagnostics_mixin_test.dart 1.51 KB