SIGN IN SIGN UP

Add `ExcludeFocus` widget, and a way to prevent focusability for a subtree. (#55756)

This adds an ExcludeFocus widget that prevents widgets in a subtree from having or obtaining focus. It also adds the ability for a FocusNode to conditionally prevent its children from being focusable when it isn't focusable (i.e. when canRequestFocus is false).

It does this by adding an descendantsAreFocusable attribute to the FocusNode, which, when false, prevents the descendants of the node from being focusable (and removes focus from them if they are currently focused).
G
Greg Spencer committed
fdc4d21b79034b96aadba6a1e9cc273178073aee
Parent: 27eee14
Committed by GitHub <noreply@github.com> on 5/1/2020, 9:36:46 PM