Upgrading google_fonts 7 to 8
Breaking7.1.0 → 8.2.1Breaking2Platform1New2Fixed3
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- The configuration class has a new name and location. The old name still works but is deprecated.
- Two font families are no longer available in the package.
- You need Flutter 3.38 or newer and Dart 3.10 or newer to use this version.
Must act 3 items need code or config changes
Dart SDK requirement changed in 8.2.0: ^3.9.0 → ^3.10.0.
Flutter requirement changed in 8.2.0: >=3.35.0 → >=3.38.0.
What you must change
Breaking2
Extracts the Config class to its own file and renames it GoogleFontsConfig; Config is now deprecated.
ConfigGoogleFontsConfigRemoves the Chiron GoRound TC and Chiron Sung HK fonts.
Chiron GoRound TCChiron Sung HKPlatform1
Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
class Config - removed:
field Config.allowRuntimeFetching: bool - removed:
static field GoogleFonts.chironGoRoundTc: const - removed:
static field GoogleFonts.chironGoRoundTcTextTheme: const - removed:
static field GoogleFonts.chironSungHk: const - removed:
static field GoogleFonts.chironSungHkTextTheme: const - changed:
static field GoogleFonts.config: final Config → static field GoogleFonts.config: final GoogleFontsConfig - added:
class GoogleFontsConfig - added:
field GoogleFontsConfig.allowRuntimeFetching: bool - added:
field GoogleFontsConfig.httpClient: http.Client? - added:
static field GoogleFonts.amarna: const - added:
static field GoogleFonts.amarnaTextTheme: const - added:
static field GoogleFonts.bbhBartle: const - added:
static field GoogleFonts.bbhBartleTextTheme: const - added:
static field GoogleFonts.bbhBogle: const - added:
static field GoogleFonts.bbhBogleTextTheme: const - added:
static field GoogleFonts.bbhHegarty: const - added:
static field GoogleFonts.bbhHegartyTextTheme: const - added:
static field GoogleFonts.cause: const - added:
static field GoogleFonts.causeTextTheme: const - added:
static field GoogleFonts.elmsSans: const - added:
static field GoogleFonts.elmsSansTextTheme: const - added:
static field GoogleFonts.geom: const - added:
static field GoogleFonts.geomTextTheme: const - added:
static field GoogleFonts.googleSans: const - added:
static field GoogleFonts.googleSansFlex: const - added:
static field GoogleFonts.googleSansFlexTextTheme: const - added:
static field GoogleFonts.googleSansTextTheme: const - added:
static field GoogleFonts.kedebideri: const - added:
static field GoogleFonts.kedebideriTextTheme: const - added:
static field GoogleFonts.lilex: const - added:
static field GoogleFonts.lilexTextTheme: const - added:
static field GoogleFonts.momoSignature: const - added:
static field GoogleFonts.momoSignatureTextTheme: const - added:
static field GoogleFonts.momoTrustDisplay: const - added:
static field GoogleFonts.momoTrustDisplayTextTheme: const - added:
static field GoogleFonts.momoTrustSans: const - added:
static field GoogleFonts.momoTrustSansTextTheme: const - added:
static field GoogleFonts.notoSansSyriacWestern: const - added:
static field GoogleFonts.notoSansSyriacWesternTextTheme: const - added:
static field GoogleFonts.scienceGothic: const - added:
static field GoogleFonts.scienceGothicTextTheme: const - added:
static field GoogleFonts.sekuya: const - added:
static field GoogleFonts.sekuyaTextTheme: const - added:
static field GoogleFonts.stackSansHeadline: const - added:
static field GoogleFonts.stackSansHeadlineTextTheme: const - added:
static field GoogleFonts.stackSansNotch: const - added:
static field GoogleFonts.stackSansNotchTextTheme: const - added:
static field GoogleFonts.stackSansText: const - added:
static field GoogleFonts.stackSansTextTextTheme: const - added:
typedef Config = GoogleFontsConfig