1. 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
  2. 15 May, 2023 1 commit
  3. 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
  4. 22 Mar, 2023 1 commit
  5. 20 Mar, 2023 1 commit
  6. 13 Mar, 2023 1 commit
  7. 07 Feb, 2023 1 commit
  8. 30 Jan, 2023 1 commit
  9. 25 Jan, 2023 1 commit
  10. 24 Jan, 2023 1 commit
  11. 17 Jan, 2023 1 commit
  12. 03 Jan, 2023 1 commit
  13. 14 Dec, 2022 2 commits
  14. 09 Dec, 2022 1 commit
  15. 15 Nov, 2022 1 commit
  16. 23 Sep, 2022 1 commit
  17. 13 Sep, 2022 1 commit
  18. 06 Sep, 2022 1 commit
  19. 22 Aug, 2022 1 commit
  20. 08 Jun, 2022 1 commit
  21. 25 May, 2022 1 commit
  22. 27 Apr, 2022 1 commit
  23. 14 Apr, 2022 1 commit
  24. 08 Mar, 2022 1 commit
  25. 03 Mar, 2022 1 commit
  26. 03 Feb, 2022 1 commit
  27. 21 Jan, 2022 1 commit
  28. 14 Oct, 2021 1 commit
  29. 07 Oct, 2021 1 commit
  30. 06 Oct, 2021 1 commit
  31. 15 Sep, 2021 1 commit
  32. 15 Jul, 2021 1 commit
  33. 14 Jul, 2021 3 commits
  34. 13 Jul, 2021 2 commits
  35. 23 Jun, 2021 1 commit
  36. 10 May, 2021 1 commit