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