google_fonts 2.3.2 google_fonts: ^2.3.2 copied to clipboard
A package to include fonts from fonts.google.com in your Flutter app.
2.3.0 - 2022-02-04 #
Changed #
- Update 2018 text style names to 2021 text style names (
display
,headline
,title
,body
,label
Xlarge
,medium
,small
)
2.0.0 - 2021-02-26 #
Changed #
- Migrated the main library to null safety.
- Require Dart 2.12 or greater.
1.1.1 - 2020-10-02 #
Changed #
- Use conditional imports to separate out web from destkop + mobile
file_io
implementations.
1.1.0 - 2020-05-11 #
Changed #
- Increase the flutter SDK dependency to version
1.17
(latest stable). This is needed for updated text theme names and a fix in the engine. - Update text theme names.
1.0.0 - 2020-04-22 #
Changed #
- Removed beta notice from README.
- Public API is now defined, as per semantic versioning guidelines.
0.7.0 - 2020-04-22 #
Changed #
- Added the following variable fonts: Bellota, Bellota Text, Comic Neue, Fira Code, Gotu, Hepta Slab, Inria Sans, Inter, Literata, Manrope, Markazi Text, Public Sans, Sen, Spartan, Viaoda Libre
0.5.0 - 2020-04-14 #
Changed #
- Use more accurate naming algorithm for
GoogleFonts.foo
andGoogleFonts.fooTextTheme
.
0.4.3 - 2020-04-14 #
Added #
- Add
GoogleFonts.getTextTheme(...)
method for dynamically getting a text theme from a font name.
0.4.2 - 2020-04-14 #
Changed #
- Change loadFontIfNecessary to only follow through once per unique family when called in parallel.
0.4.1 - 2020-04-13 #
Changed #
- Update README to include instructions for how to include licenses for fonts.
0.4.0 - 2020-03-20 #
Added #
- Added ability to load fonts dynamically through
getFont
method. - Added
asMap
method which returns a map with font family names mapped to methods.
0.3.7 - 2020-02-03 #
0.3.5 - 2020-01-23 #
0.3.4 - 2020-01-23 #
Changed #
- Store downloaded font files in device's support directory instead of documents directory.
0.3.0 - 2020-01-07 #
Added #
-
Added dartdocs to every public method in the google fonts package.
-
Added the ability to include font files in pubspec assets (see README).
0.1.1 - 2019-12-10 #
Changed #
-
Generated method names changed back to pre 0.1.0 (breaking change). For example,
GoogleFonts.latoTextStyle(...)
is nowGoogleFonts.lato(...)
. -
Text theme parameters are now optional positional parameters (breaking change). For example,
GoogleFonts.latoTextTheme(textTheme: TextTheme(...))
is nowGoogleFonts.latoTextTheme(TextTheme(...))
.
0.1.0 - 2019-12-06 #
Changed #
-
Generated method names changed (breaking change). For example,
-
Text theme support. Every font family now also has a
TextTheme
method. For example, theLato
font now hasGoogleFonts.latoTextStyle()
andGoogleFonts.latoTextTheme()
. See README for more examples. -
Refactored implementation, updated READMEs, and usage docs.
0.0.1 - 2019-11-15 #
Added #
-
Initial release: supports all 960 fonts and variants from fonts.google.com.
-
ttf files are downloaded via http on demand, and saved to local disk so that they can be loaded without making another http request for future font requests.
-
Fonts are loaded asynchronously through the font loader and Text widgets that use them are refreshed when they are ready.