createErrorStyle function

TextStyle createErrorStyle(
  1. ResolvedTheme theme
)

Creates a TextStyle for validation error messages.

Implementation

TextStyle createErrorStyle(ResolvedTheme theme) {
  final fontSize = (theme.fonts.baseFontSize * 0.8125).roundToDouble();
  return TextStyle(
    fontFamily: theme.fonts.fontFamily,
    fontSize: fontSize,
    fontWeight: FontWeight.w400,
    height: theme.fonts.lineHeight,
    letterSpacing: theme.fonts.letterSpacing,
    color: theme.colors.error,
  );
}