Skip to content

Commit bff47a3

Browse files
[google_fonts] Initial import (#9895)
Initial import of [`google_fonts`](https://github.com/material-foundation/flutter-packages/tree/7ef4a67e00f3f9503079753b890416dc3aeced56/packages/google_fonts) As with previous package imports, this is a history graft that will be landed as a merge rather than a squash, to preserve commit history. My changes are all visible as follow-up commits to the initial merge commit, but to summarize: - Updated the package metadata (version, changelog, repo links, etc.) - Updated the min SDK version to follow our policy - Autoformated for the new SDK version - Fixed (or in some cases, ignored) violations of our stricter analysis options - Adopted the README code excerpts system - Adopted the standard repo license format, per repo policy - Removed the use of `cider` to auto-generate changelog updates during generation, to remove the third-party dependency - Added a suffix to the generated code, and adds a repo-level rule to ignore that suffix during analysis - Added repo-level allowance for protobuf (google-owned) and mustache_template (pinned, with allowance explanation) - Removed example/test/unit_test.dart, which failed in CI (it wasn't being run in the source repo's CI) and appeared to be demonstrating an anti-pattern (trying to load fonts via the network in a unit test). - Updated example/android/ to use the new build style
2 parents c905585 + ffd7a9d commit bff47a3

File tree

192 files changed

+201347
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+201347
-0
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ updates:
3535
- /packages/file_selector/file_selector_android/example/android/app
3636
- /packages/flutter_plugin_android_lifecycle/example/android/app
3737
- /packages/go_router/example/android/app
38+
- /packages/google_fonts/example/android/app
3839
- /packages/google_maps_flutter/google_maps_flutter/example/android/app
3940
- /packages/google_maps_flutter/google_maps_flutter_android/example/android/app
4041
- /packages/google_sign_in/google_sign_in/example/android/app

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474
- any-glob-to-any-file:
7575
- packages/google_indentity_services_web/**
7676

77+
'p: google_fonts':
78+
- changed-files:
79+
- any-glob-to-any-file:
80+
- packages/google_fonts/**
81+
7782
'p: google_maps_flutter':
7883
- changed-files:
7984
- any-glob-to-any-file:

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ packages/go_router/** @chunhtai
1515
packages/go_router_builder/** @chunhtai
1616
packages/google_adsense/** @sokoloff06 @ditman
1717
packages/google_identity_services_web/** @ditman
18+
packages/google_fonts/** @Piinks
1819
packages/google_maps_flutter/** @stuartmorgan-g
1920
packages/google_sign_in/** @stuartmorgan-g
2021
packages/image_picker/** @tarrinneal

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ These are the packages hosted in this repository:
5151
| [go\_router](./packages/go_router/) | [![pub package](https://img.shields.io/pub/v/go_router.svg)](https://pub.dev/packages/go_router) | [![pub points](https://img.shields.io/pub/points/go_router)](https://pub.dev/packages/go_router/score) | [![downloads](https://img.shields.io/pub/dm/go_router)](https://pub.dev/packages/go_router/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20go_router?label=)](https://github.com/flutter/flutter/labels/p%3A%20go_router) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20go_router?label=)](https://github.com/flutter/packages/labels/p%3A%20go_router) |
5252
| [go\_router\_builder](./packages/go_router_builder/) | [![pub package](https://img.shields.io/pub/v/go_router_builder.svg)](https://pub.dev/packages/go_router_builder) | [![pub points](https://img.shields.io/pub/points/go_router_builder)](https://pub.dev/packages/go_router_builder/score) | [![downloads](https://img.shields.io/pub/dm/go_router_builder)](https://pub.dev/packages/go_router_builder/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20go_router_builder?label=)](https://github.com/flutter/flutter/labels/p%3A%20go_router_builder) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20go_router_builder?label=)](https://github.com/flutter/packages/labels/p%3A%20go_router_builder) |
5353
| [google\_adsense](./packages/google_adsense/)| [![pub package](https://img.shields.io/pub/v/google_adsense.svg)](https://pub.dev/packages/google_adsense) | [![pub points](https://img.shields.io/pub/points/google_adsense)](https://pub.dev/packages/google_adsense/score) | [![downloads](https://img.shields.io/pub/dm/google_adsense)](https://pub.dev/packages/google_adsense/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20google_adsense?label=)](https://github.com/flutter/flutter/labels/p%3A%20google_adsense) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20google_adsense?label=)](https://github.com/flutter/packages/labels/p%3A%20google_adsense) |
54+
| [google\_fonts](./packages/google_fonts/) | [![pub package](https://img.shields.io/pub/v/google_fonts.svg)](https://pub.dev/packages/google_fonts) | [![pub points](https://img.shields.io/pub/points/google_fonts)](https://pub.dev/packages/google_fonts/score) | [![downloads](https://img.shields.io/pub/dm/google_fonts)](https://pub.dev/packages/google_fonts/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20google_fonts?label=)](https://github.com/flutter/flutter/labels/p%3A%20google_fonts) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20google_fonts?label=)](https://github.com/flutter/packages/labels/p%3A%20google_fonts) |
5455
| [google\_maps\_flutter](./packages/google_maps_flutter/) | [![pub package](https://img.shields.io/pub/v/google_maps_flutter.svg)](https://pub.dev/packages/google_maps_flutter) | [![pub points](https://img.shields.io/pub/points/google_maps_flutter)](https://pub.dev/packages/google_maps_flutter/score) | [![downloads](https://img.shields.io/pub/dm/google_maps_flutter)](https://pub.dev/packages/google_maps_flutter/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20maps?label=)](https://github.com/flutter/flutter/labels/p%3A%20maps) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20google_maps_flutter?label=)](https://github.com/flutter/packages/labels/p%3A%20google_maps_flutter) |
5556
| [google\_sign\_in](./packages/google_sign_in/) | [![pub package](https://img.shields.io/pub/v/google_sign_in.svg)](https://pub.dev/packages/google_sign_in) | [![pub points](https://img.shields.io/pub/points/google_sign_in)](https://pub.dev/packages/google_sign_in/score) | [![downloads](https://img.shields.io/pub/dm/google_sign_in)](https://pub.dev/packages/google_sign_in/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20google_sign_in?label=)](https://github.com/flutter/flutter/labels/p%3A%20google_sign_in) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20google_sign_in?label=)](https://github.com/flutter/packages/labels/p%3A%20google_sign_in) |
5657
| [image\_picker](./packages/image_picker/) | [![pub package](https://img.shields.io/pub/v/image_picker.svg)](https://pub.dev/packages/image_picker) | [![pub points](https://img.shields.io/pub/points/image_picker)](https://pub.dev/packages/image_picker/score) | [![downloads](https://img.shields.io/pub/dm/image_picker)](https://pub.dev/packages/image_picker/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20image_picker?label=)](https://github.com/flutter/flutter/labels/p%3A%20image_picker) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20image_picker?label=)](https://github.com/flutter/packages/labels/p%3A%20image_picker) |

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ analyzer:
1818
deprecated_member_use_from_same_package: ignore
1919
exclude: # DIFFERENT FROM FLUTTER/FLUTTER
2020
# Ignore generated files
21+
- '**/*.pb.dart'
2122
- '**/*.g.dart'
2223
- '**/*.mocks.dart' # Mockito @GenerateMocks
2324

packages/google_fonts/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
generator/families_diff

packages/google_fonts/AUTHORS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the Flutter project. Names should be added to the list like so:
3+
#
4+
# Name/Organization <email address>
5+
6+
Google Inc.

0 commit comments

Comments
 (0)