buildTextStyle static method

TextStyle buildTextStyle({
  1. required FondeTextVariant variant,
  2. required BuildContext context,
  3. required WidgetRef ref,
  4. Color? color,
  5. FontWeight? fontWeight,
  6. String? fontFamily,
  7. bool disableZoom = false,
})

Build a TextStyle from an FondeTextVariant using a WidgetRef.

variant - The text variant. context - BuildContext (for getting TextTheme). ref - WidgetRef (for getting accessibility config and color scope). color - Custom text color (optional). fontWeight - Custom font weight (optional). fontFamily - Custom font family (optional). disableZoom - Whether to disable the zoom function (default: false).

Implementation

static TextStyle buildTextStyle({
  required FondeTextVariant variant,
  required BuildContext context,
  required WidgetRef ref,
  Color? color,
  FontWeight? fontWeight,
  String? fontFamily,
  bool disableZoom = false,
}) {
  return FondeTextStyleBuilder.buildTextStyle(
    variant: variant,
    context: context,
    ref: ref,
    color: color,
    fontWeight: fontWeight,
    fontFamily: fontFamily,
    disableZoom: disableZoom,
  );
}