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. 22 Mar, 2023 1 commit
  3. 13 Mar, 2023 1 commit
  4. 16 Feb, 2023 1 commit
  5. 07 Feb, 2023 1 commit
  6. 24 Jan, 2023 1 commit
  7. 17 Jan, 2023 1 commit
  8. 03 Jan, 2023 1 commit
  9. 30 Nov, 2022 1 commit
  10. 28 Nov, 2022 1 commit
  11. 15 Nov, 2022 1 commit
  12. 24 Oct, 2022 1 commit
  13. 19 Sep, 2022 1 commit
  14. 14 Sep, 2022 1 commit
  15. 03 Sep, 2022 1 commit
  16. 02 Sep, 2022 1 commit
  17. 10 Aug, 2022 1 commit
  18. 11 Jul, 2022 1 commit
  19. 15 Jun, 2022 1 commit
  20. 08 Jun, 2022 1 commit
  21. 07 Jun, 2022 1 commit
  22. 25 May, 2022 1 commit
  23. 10 May, 2022 1 commit
  24. 27 Apr, 2022 1 commit
  25. 20 Apr, 2022 1 commit
  26. 23 Mar, 2022 1 commit
  27. 09 Mar, 2022 1 commit
  28. 08 Mar, 2022 1 commit
  29. 01 Mar, 2022 1 commit
  30. 28 Feb, 2022 1 commit
  31. 11 Feb, 2022 1 commit
  32. 08 Feb, 2022 1 commit
  33. 06 Dec, 2021 1 commit
  34. 08 Oct, 2021 3 commits
  35. 14 Jun, 2021 1 commit
  36. 31 Mar, 2021 1 commit
  37. 17 Mar, 2021 1 commit
  38. 20 Jan, 2021 1 commit
    • stuartmorgan's avatar
      Don't use iOS font names for the macOS theme (#74342) · 48b3e8bf
      stuartmorgan authored
      macOS was sharing the iOS font theme, but the names of the underlying
      fonts differ between the two platforms, so this was actually using the
      fallback font from the engine. Instead of using the underlying font
      names on macOS, which is no longer allowed by CoreText, use the
      meta-font returned by systemFontOfSize:
      
      This has been verified on 10.15; older versions of macOS may need
      different font names as the handling of these fonts have changed over
      time. Fixing older versions as necessary will be handled in a follow-up.
      
      See https://github.com/flutter/flutter/issues/57805
      48b3e8bf