GSFormStyle constructor
GSFormStyle(- {TextStyle? titleStyle,
- Color? backgroundFieldColor,
- Color? backgroundSectionColor,
- Color? fieldBorderColor,
- Color? backgroundFieldColorDisable,
- double? fieldRadius,
- double? sectionRadius,
- double? sectionCardElevation,
- double? sectionCardPadding,
- TextStyle? fieldHintStyle,
- TextStyle? fieldTextStyle,
- TextStyle? errorTextStyle,
- TextStyle? helpTextStyle,
- String? requiredText,
- TextStyle? sectionTitleStyle}
)
Implementation
GSFormStyle({
TextStyle? titleStyle,
Color? backgroundFieldColor,
Color? backgroundSectionColor,
Color? fieldBorderColor,
Color? backgroundFieldColorDisable,
double? fieldRadius,
double? sectionRadius,
double? sectionCardElevation,
double? sectionCardPadding,
TextStyle? fieldHintStyle,
TextStyle? fieldTextStyle,
TextStyle? errorTextStyle,
TextStyle? helpTextStyle,
String? requiredText,
TextStyle? sectionTitleStyle,
}) : backgroundSectionColor = backgroundSectionColor ?? GSFormColors.white,
backgroundFieldColor = backgroundFieldColor ?? GSFormColors.colorBackground,
backgroundFieldColorDisable = backgroundFieldColorDisable ?? GSFormColors.colorBackgroundDisable,
titleTextStyle = titleStyle ?? GSFormTheme.textThemeStyle.displayMedium!,
fieldRadius = fieldRadius ?? 10.0,
sectionRadius = sectionRadius ?? 4.0,
sectionCardElevation = sectionCardElevation ?? 2.0,
sectionCardPadding = sectionCardPadding ?? 2.0,
requiredText = requiredText ?? '',
fieldHintStyle = fieldHintStyle ?? GSFormTheme.textThemeStyle.displayMedium!,
fieldTextStyle = fieldTextStyle ?? GSFormTheme.textThemeStyle.displayMedium!,
errorTextStyle = errorTextStyle ?? GSFormTheme.textThemeStyle.headlineSmall!,
helpTextStyle = helpTextStyle ?? GSFormTheme.textThemeStyle.headlineMedium!,
sectionTitleStyle = sectionTitleStyle ?? GSFormTheme.textThemeStyle.displayLarge!,
fieldBorderColor = fieldBorderColor ?? GSFormColors.white;