FontStyleExtension extension
BuildContext extension that resolves the active font style.
Resolution order:
- Per-call
fontFamilyparam (highest priority — from TextOptions). - UiFrameworkConfig.fontStyleBuilder if configured.
- UiFrameworkConfig.fontFamily if configured.
- 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