GSFormStyle constructor

GSFormStyle(
  1. {TextStyle? titleStyle,
  2. Color? backgroundFieldColor,
  3. Color? backgroundSectionColor,
  4. Color? fieldBorderColor,
  5. Color? backgroundFieldColorDisable,
  6. double? fieldRadius,
  7. double? sectionRadius,
  8. double? sectionCardElevation,
  9. double? sectionCardPadding,
  10. TextStyle? fieldHintStyle,
  11. TextStyle? fieldTextStyle,
  12. TextStyle? errorTextStyle,
  13. TextStyle? helpTextStyle,
  14. String? requiredText,
  15. 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;