1. 07 Nov, 2023 1 commit
    • Qun Cheng's avatar
      Adaptive `Switch` (#130425) · ed70f4e2
      Qun Cheng authored
      Currently, `Switch.factory` delegates to `CupertinoSwitch` when platform
      is iOS or macOS. This PR is to:
      * have the factory configure the Material `Switch` for the expected look
      and feel.
      * introduce `Adaptation` class to customize themes for the adaptive
      components.
      ed70f4e2
  2. 28 Oct, 2023 1 commit
  3. 20 Sep, 2023 2 commits
  4. 12 Jul, 2023 1 commit
  5. 09 Jun, 2023 1 commit
    • Pierre-Louis's avatar
      Improve defaults generation with logging, stats, and token validation (#128244) · 66cda591
      Pierre-Louis authored
      ## Description
      
      This improves defaults generation with logging, stats, and token validation. 
      
      This PR includes these changes:
      * introduce `TokenLogger`, with a verbose mode
        * prints versions and tokens usage to the console
        * outputs `generated/used_tokens.csv`, a list of all used tokens, for use by Google
      * find token files in `data` automatically
      * hide tokens `Map`
        * tokens can be obtained using existing resolvers (e.g. `color`, `shape`), or directly through `getToken`.
        * tokens can be checked for existence with `tokenAvailable`
      * remove version from template, since the tokens are aggregated and multiple versions are possible (as is the case currently), it does not make sense to attribute a single version
      * improve documentation
      
      ## Related Issues
       - Fixes https://github.com/flutter/flutter/issues/122602
      
      ## Tests
       - Added tests for `TokenLogger`
       - Regenerated tokens, no-op except version removal
      
      ## Future work
      A future PR should replace or remove the following invalid tokens usages
      
      <img width="578" alt="image" src="https://github.com/flutter/flutter/assets/6655696/b6f9e5a7-523f-4f72-94f9-1b0bf4cc9f00">
      66cda591
  6. 12 May, 2023 1 commit
  7. 11 May, 2023 1 commit
    • Qun Cheng's avatar
      Reorder `materialStateProperty` defaults (#125905) · 4e7e4512
      Qun Cheng authored
      Fixes #122250. This PR is to make sure all the MaterialStateProperty defaults are able to correctly resolve different states. 
      * When a widget is pressed, it is also hovered, so we need to put the `MaterialState.pressed` check before `MaterialState.hovered`. 
      * When a widget is focused, the widget should still be able to be hovered, so we should check `MaterialState.hovered` before `MaterialState.focused`.
      * There are also cases like in _InputDecoratorDefaultsM3, the `MaterialState.disabled` should be checked before `MaterialState.error`.
      
       the order should be disabled, (error), pressed, hovered, focused.
      4e7e4512
  8. 05 May, 2023 1 commit
  9. 22 Mar, 2023 1 commit
  10. 14 Mar, 2023 1 commit
  11. 13 Mar, 2023 1 commit
  12. 09 Feb, 2023 1 commit
  13. 08 Feb, 2023 1 commit
  14. 07 Feb, 2023 1 commit
  15. 24 Jan, 2023 1 commit
  16. 17 Jan, 2023 1 commit
  17. 03 Jan, 2023 1 commit
  18. 06 Dec, 2022 1 commit
  19. 29 Nov, 2022 1 commit
  20. 28 Nov, 2022 1 commit
  21. 15 Nov, 2022 1 commit
  22. 14 Nov, 2022 1 commit
  23. 24 Oct, 2022 1 commit
  24. 12 Oct, 2022 1 commit
  25. 19 Sep, 2022 1 commit
  26. 14 Sep, 2022 1 commit
  27. 09 Sep, 2022 1 commit
  28. 10 Aug, 2022 1 commit
  29. 02 Aug, 2022 1 commit
  30. 28 Jul, 2022 1 commit
  31. 25 May, 2022 2 commits
  32. 12 May, 2022 1 commit
  33. 27 Apr, 2022 1 commit
  34. 14 Apr, 2022 1 commit
  35. 03 Feb, 2022 1 commit
  36. 13 Jan, 2022 1 commit
  37. 14 Sep, 2021 1 commit
  38. 21 Jun, 2021 1 commit