Add MediaQueryData.navigationMode and allow controls to be focused when disabled. (#54919)

This adds a new navigationMode to the MediaQueryData that indicates how focusable controls should behave under different navigation modes, currently with two modes: NavigationMode.traditional, and NavigationMode.directional.

It may seem like focusing a disabled control is not desirable, but this is useful for user interfaces that use DPAD navigation because if a control gets disabled, losing focus is disruptive to the user, and it is difficult to control where the focus will end up unless it is done explicitly.
https://dart.googlesource.com/external/github.com/flutter/flutter/+/8ef291545330f18177d797a3e0ecdc5508a5eefd
1 file changed
tree: 383a98f5c301e5b6008bae61fd88e3f339cad59b
  1. commits.json