Introducing Google Fonts for Flutter v 1.0.0!

Anthony Robledo
Flutter
Published in
2 min readApr 23, 2020

By Anthony Robledo and MH Johnson

Google Fonts for Flutter was first announced at Flutter Interact in December 2019. With help from the community (thank you!), we have added many new features and improved stability. After a successful time in beta, it is now ready for prime time use on Android, iOS, Web, and MacOS, as Google Fonts 1.0.0.

Features added since beta:

  • Get a list of all supported fonts with GoogleFonts.asMap()
  • Use a font with a dynamic name: GoogleFonts.getFont(‘Lato’)
  • Ensure secure downloads with checksum verification
  • Experience improved performance, especially on web
  • Pre-bundle fonts using pubspec assets
  • Optionally disable fetching fonts at runtime (useful when debugging or pre-bundling)

Google Fonts allows developers to easily experiment with and use any of the fonts from fonts.google.com in their app. When the app is ready to publish, the developer then decides whether the user receives the font by downloading it from the API, or it’s pre-bundled with the app package.

We have minimized the work needed to pre-bundle a font, and also kept it compatible with dynamic font loading so you don’t have to change your code if you decide to pre-bundle.

Check out the Getting Started Guide to learn how to include fonts in your app via TextStyles or TextThemes. And once you are ready to publish, learn how to optionally pre-bundle fonts and add the font licenses to your app’s LicenseRegistry.

We hope you find this package useful for all of your Google Fonts needs. As always, please never hesitate to leave feedback, file an issue, or open a pull request!

--

--

Anthony Robledo
Flutter

4 * (1 - 1/3 + 1/5 - 1/7 + 1/9 -1/11 + 1/13 - 1/15 + 1/17 - 1/19 + 1/21 - 1/23 + 1/25 - 1/27 + 1/29 - 1/31 + 1/33 - 1/35 + 1/37 - 1/39 + 1/41 -1/43 + ... )