flutter/examples/layers/widgets
Todd Volkert 835c7fab45
Fix FocusManager constructor (#75894)
The FocusManager constructor was registering global event handlers
on the shared RawKeyboard instance and the global pointer router.
This posed a few problems: (1) there was no way to unregister these
handlers, and (2) instantiating a second FocusManager would overwrite
the existing focus manager's RawKeyboard handler. This was manifesting
in unexpected ways, such as the fact that constructing a second
BuildOwner (for a parallel tree, for instance) was obliterating the
event handler for the main BuildOwner's focus manager, thus messing
with focus.

This change separates those global event registrations into a
dedicated method, registerGlobalHandlers(), and overrides dispose()
to properly unregister those handlers.
2021-02-12 17:19:20 -08:00
..
custom_render_box.dart Migrate all of examples/layers to sound null safety (#68744) 2020-10-22 13:33:07 -07:00
gestures.dart Migrate all of examples/layers to sound null safety (#68744) 2020-10-22 13:33:07 -07:00
hello_world.dart License update (#45373) 2019-11-27 15:04:02 -08:00
media_query.dart Remove nullOk in MediaQuery.of (#68736) 2020-10-28 07:56:41 -07:00
sectors.dart Remove "unnecessary" imports. (#74820) 2021-01-27 16:19:04 -08:00
spinning_mixed.dart Fix FocusManager constructor (#75894) 2021-02-12 17:19:20 -08:00
spinning_square.dart Migrate all of examples/layers to sound null safety (#68744) 2020-10-22 13:33:07 -07:00
styled_text.dart Migrate all of examples/layers to sound null safety (#68744) 2020-10-22 13:33:07 -07:00