| commit | 3cc2ae9d156f781569611b96023921b76523bffa | [log] [tgz] |
|---|---|---|
| author | Pierre <6655696+guidezpl@users.noreply.github.com> | Tue Jan 13 00:39:10 2026 +0100 |
| committer | GitHub <noreply@github.com> | Mon Jan 12 23:39:10 2026 +0000 |
| tree | b461592849176327026f4687bfa06cb7a075def7 | |
| parent | 9631ecf283fe334b750f62939d0d78537d97aa4e [diff] |
[google_fonts] Update the font generator to exclude variable font entries when a static entry of the same weight and style exists (#10739) #10713 accidentally introduced duplicate variable fonts for 400 weight fonts, an issue only discovered through https://pub.dev/packages/google_fonts/score, because this repo's analysis options exclude generated files. Using 7.0.0 would cause the variable font variant to be used for 400 weight, a non-issue, apart from the typically larger font size. With this PR: - Updated the font generator to exclude variable font entries when a static entry of the same weight and style exists, keeping variable fonts only if no static equivalent is present. - Updated font proto and regenerated Dart parts. - Renamed generated files from .g.dart to .dart for google_fonts_all_parts and all font part files. Updated generator, template, and main library to use the new file extensions, and added some missing public API documentation. - Prepares for future explicit variable font support and improves font selection consistency. Fixes https://github.com/flutter/flutter/issues/180634 Related to https://github.com/flutter/flutter/issues/174575 and https://github.com/flutter/flutter/issues/174567 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: