FontStyleExtension extension

BuildContext extension that resolves the active font style.

Resolution order:

  1. Per-call fontFamily param (highest priority — from TextOptions).
  2. UiFrameworkConfig.fontStyleBuilder if configured.
  3. UiFrameworkConfig.fontFamily if configured.
  4. Google Fonts Poppins (default).
on

Methods

getFontStyle({required double fontSize, FontWeight? fontWeight, Color? color, FontStyle? fontStyle, double? letterSpacing = 0, double? wordSpacing, double? height, String? fontFamily, TextDecoration? decoration}) TextStyle

Available on BuildContext, provided by the FontStyleExtension extension