1. 04 Mar, 2023 1 commit
  2. 06 Sep, 2022 1 commit
    • Darren Austin's avatar
      Fixing elevation issues with Material 3 (#110624) · 33ed6a35
      Darren Austin authored
      * Added support for surfaceTintColor and shadowColor to the Dialog widgets.
      * Updated the defaults for Material.shadowColor and Material.surfaceTint to allow turning off the features with a transparent color.
      * Added support for shadowColor and surfaceTintColor for Drawer widget.
      33ed6a35
  3. 01 Sep, 2022 1 commit
  4. 23 Aug, 2022 1 commit
  5. 18 Aug, 2022 1 commit
  6. 11 Aug, 2022 2 commits
  7. 03 Aug, 2022 1 commit
  8. 06 Jul, 2022 1 commit
  9. 10 Jun, 2022 1 commit
  10. 07 Jun, 2022 1 commit
  11. 20 May, 2022 1 commit
  12. 03 Feb, 2022 1 commit
  13. 14 Jan, 2022 1 commit
  14. 01 Dec, 2021 2 commits
  15. 17 Nov, 2021 1 commit
  16. 16 Nov, 2021 1 commit
  17. 08 Oct, 2021 3 commits
  18. 10 Aug, 2021 1 commit
  19. 15 Jul, 2021 1 commit
  20. 14 Jul, 2021 3 commits
  21. 13 Jul, 2021 2 commits
  22. 28 Apr, 2021 1 commit
  23. 06 Mar, 2021 1 commit
  24. 27 Jan, 2021 1 commit
  25. 08 Oct, 2020 1 commit
  26. 11 Jun, 2020 1 commit
  27. 28 May, 2020 1 commit
  28. 27 May, 2020 1 commit
    • Greg Spencer's avatar
      Add MediaQueryData.navigationMode and allow controls to be focused when disabled. (#54919) · 8ef29154
      Greg Spencer authored
      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.
      8ef29154
  29. 29 Apr, 2020 1 commit
  30. 23 Mar, 2020 1 commit
  31. 13 Feb, 2020 1 commit
    • Greg Spencer's avatar
      Reland: Add OrderedFocusTraversalPolicy and FocusTraversalGrou… (#50672) · d57d4935
      Greg Spencer authored
      This re-lands #49235 with the addition of includeSemantics flag on the Focus widget so that the FocusTraversalGroup can create a Focus widget without affecting the semantics tree.
      
      The FocusTraversalGroup uses the Focus widget to create a grouping of descendants for traversal, but doesn't actually participate in focus (canRequestFocus is always false), so we don't want it to add a Semantics widget in that case, since that can cause semantics changes. The canRequestFocus attribute can also be used when a widget is disabled, so we do sometimes want to include Semantics even if that is false, but not in the case where it is always false, as for FocusTraversalGroup.
      
      - Added a test to make sure that FocusTraversalGroup doesn't add any semantics information.
      d57d4935
  32. 12 Feb, 2020 1 commit
  33. 11 Feb, 2020 1 commit
    • Greg Spencer's avatar
      Add OrderedFocusTraversalPolicy and FocusTraversalGroup to all… (#49235) · 8ef5e2f0
      Greg Spencer authored
      This change adds a way to provide explicit focus order for a part of the widget tree.
      
      It adds FocusTraversalPolicyGroup, which in many ways is similar to DefaultFocusTraversal, except that it groups a widget subtree together so that those nodes are traversed as a group. DefaultFocusTraversal doesn't work as one would expect: If there is more than one DefaultFocusTraversal inside of a focus scope, the policy can change depending on which node was asked to move "next", which can cause unexpected behavior. The new grouping mechanism doesn't have that problem. I deprecate DefaultFocusTraversal in this PR.
      
      It also adds OrderedFocusTraversalPolicy, which is a policy that can be supplied to FocusTraversalPolicyGroup to set the policy for a sub-tree. It looks for FocusTraversalOrder inherited widgets, which use a FocusOrder to do the sorting. FocusOrder has two subclasses: NumericalFocusOrder (which sorts based on a double), and LexicalFocusOrder, which sorts based on a String.
      
      As part of doing this, I refactored the way FocusTraversalPolicy is implemented so that it has more default implementation methods, and exposes a new protected member: sortDescendants, which makes it easier for developers to make their own policy subclasses: they only need to implement sortDescendants to get a new ordering behavior, but can also still override any of the default implementation behaviors if they need different behavior.
      
      I was able to do this without breaking the API (AFAICT).
      8ef5e2f0