Upgrading google_fonts 8 to 9
Breaking8.2.1 → 9.0.0Breaking1Platform1New3Changed2Other1
BreakingUpgrade verdict
1 breaking change and a platform requirement change.
In plain terms
- Two font families are no longer available, so code using them will fail.
- You need at least Flutter 3.47 and Dart 3.13 to use this version.
Must act 2 items need code or config changes
Dart SDK requirement changed in 9.0.0: ^3.10.0 → ^3.13.0.
Flutter requirement changed in 9.0.0: >=3.38.0 → >=3.47.0.
What you must change
Breaking1
Removes the Finlandica and Saira Stencil One fonts.
GoogleFonts.finlandica()GoogleFonts.sairaStencilOne()Platform1
Updates minimum supported SDK version to Flutter 3.47/Dart 3.13.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
static field GoogleFonts.finlandica: const - removed:
static field GoogleFonts.finlandicaTextTheme: const - removed:
static field GoogleFonts.sairaStencilOne: const - removed:
static field GoogleFonts.sairaStencilOneTextTheme: const - added:
class GoogleFontsLite: abstract final - added:
static field GoogleFonts.akt: const - added:
static field GoogleFonts.aktTextTheme: const - added:
static field GoogleFonts.alienBlock: const - added:
static field GoogleFonts.alienBlockTextTheme: const - added:
static field GoogleFonts.allkin: const - added:
static field GoogleFonts.allkinTextTheme: const - added:
static field GoogleFonts.alyamama: const - added:
static field GoogleFonts.alyamamaTextTheme: const - added:
static field GoogleFonts.bJCree: const - added:
static field GoogleFonts.bJCreeTextTheme: const - added:
static field GoogleFonts.betaniaPatmos: const - added:
static field GoogleFonts.betaniaPatmosGdl: const - added:
static field GoogleFonts.betaniaPatmosGdlTextTheme: const - added:
static field GoogleFonts.betaniaPatmosIn: const - added:
static field GoogleFonts.betaniaPatmosInGdl: const - added:
static field GoogleFonts.betaniaPatmosInGdlTextTheme: const - added:
static field GoogleFonts.betaniaPatmosInTextTheme: const - added:
static field GoogleFonts.betaniaPatmosTextTheme: const - added:
static field GoogleFonts.bpmfHuninn: const - added:
static field GoogleFonts.bpmfHuninnTextTheme: const - added:
static field GoogleFonts.bpmfIansui: const - added:
static field GoogleFonts.bpmfIansuiTextTheme: const - added:
static field GoogleFonts.bpmfZihiKaiStd: const - added:
static field GoogleFonts.bpmfZihiKaiStdTextTheme: const - added:
static field GoogleFonts.datatype: const - added:
static field GoogleFonts.datatypeTextTheme: const - added:
static field GoogleFonts.estedad: const - added:
static field GoogleFonts.estedadTextTheme: const - added:
static field GoogleFonts.finlandicaHeadline: const - added:
static field GoogleFonts.finlandicaHeadlineTextTheme: const - added:
static field GoogleFonts.finlandicaText: const - added:
static field GoogleFonts.finlandicaTextTextTheme: const - added:
static field GoogleFonts.geistPixel: const - added:
static field GoogleFonts.geistPixelTextTheme: const - added:
static field GoogleFonts.gveretLevin: const - added:
static field GoogleFonts.gveretLevinTextTheme: const - added:
static field GoogleFonts.idiqlat: const - added:
static field GoogleFonts.idiqlatTextTheme: const - added:
static field GoogleFonts.iosevkaCharon: const - added:
static field GoogleFonts.iosevkaCharonMono: const - added:
static field GoogleFonts.iosevkaCharonMonoTextTheme: const - added:
static field GoogleFonts.iosevkaCharonTextTheme: const - added:
static field GoogleFonts.lineSeedJp: const - added:
static field GoogleFonts.lineSeedJpTextTheme: const - added:
static field GoogleFonts.mPlusU: const - added:
static field GoogleFonts.mPlusUTextTheme: const - added:
static field GoogleFonts.mirandaSans: const - added:
static field GoogleFonts.mirandaSansTextTheme: const - added:
static field GoogleFonts.montenegrinGothicOne: const - added:
static field GoogleFonts.montenegrinGothicOneTextTheme: const - added:
static field GoogleFonts.playwriteNzBasic: const - added:
static field GoogleFonts.playwriteNzBasicGuides: const - added:
static field GoogleFonts.playwriteNzBasicGuidesTextTheme: const - added:
static field GoogleFonts.playwriteNzBasicTextTheme: const - added:
static field GoogleFonts.pliant: const - added:
static field GoogleFonts.pliantTextTheme: const - added:
static field GoogleFonts.ramsina: const - added:
static field GoogleFonts.ramsinaTextTheme: const - added:
static field GoogleFonts.sairaStencil: const - added:
static field GoogleFonts.sairaStencilTextTheme: const - added:
static field GoogleFonts.snPro: const - added:
static field GoogleFonts.snProTextTheme: const - added:
static field GoogleFonts.stixTwoMath: const - added:
static field GoogleFonts.stixTwoMathTextTheme: const - added:
static field GoogleFonts.strichpunktSans: const - added:
static field GoogleFonts.strichpunktSansTextTheme: const - added:
static field GoogleFonts.yuyu: const - added:
static field GoogleFonts.yuyuShort: const - added:
static field GoogleFonts.yuyuShortTextTheme: const - added:
static field GoogleFonts.yuyuTextTheme: const - added:
static field GoogleFontsLite.config: final GoogleFontsConfig - added:
static field GoogleFontsLite.fontsMap: final Map<String, Map<GoogleFontsVariant, GoogleFontsFile>> - added:
static method GoogleFontsLite.getFont( String fontFamily, { TextStyle? textStyle, Color? color, Color? backgroundColor, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<ui.Shadow>? shadows, List<ui.FontFeature>? fontFeatures, TextDecorat… - added:
static method GoogleFontsLite.getTextTheme(String fontFamily, [TextTheme? textTheme]): TextTheme - added:
static method GoogleFontsLite.pendingFonts([List<dynamic>? _]): Future<List<void>>
- added:
class GoogleFontsConfig - added:
class GoogleFontsLite: abstract final - added:
field GoogleFontsConfig.allowRuntimeFetching: bool - added:
field GoogleFontsConfig.httpClient: http.Client? - added:
static field GoogleFontsLite.config: final GoogleFontsConfig - added:
static field GoogleFontsLite.fontsMap: final Map<String, Map<GoogleFontsVariant, GoogleFontsFile>> - added:
static method GoogleFontsLite.getFont( String fontFamily, { TextStyle? textStyle, Color? color, Color? backgroundColor, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<ui.Shadow>? shadows, List<ui.FontFeature>? fontFeatures, TextDecorat… - added:
static method GoogleFontsLite.getTextTheme(String fontFamily, [TextTheme? textTheme]): TextTheme - added:
static method GoogleFontsLite.pendingFonts([List<dynamic>? _]): Future<List<void>> - added:
typedef Config = GoogleFontsConfig