AubecsFormStyle constructor

  1. @JsonSerializable(explicitToJson: true)
const AubecsFormStyle({
  1. @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? textColor,
  2. @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? textErrorColor,
  3. @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? placeholderColor,
  4. int? fontSize,
  5. int? borderWidth,
  6. @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? backgroundColor,
  7. @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? borderColor,
  8. int? borderRadius,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory AubecsFormStyle({
  @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson)

  /// Color of the textinput
  Color? textColor,
  @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson)

  /// Color of the errormessage
  /// Only available for Android
  Color? textErrorColor,
  @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson)

  /// Color of the place holder text
  /// Only available for Android
  Color? placeholderColor,

  /// Size of the font in the input form.
  int? fontSize,

  /// Borderwith of the form
  /// Only available for Android
  int? borderWidth,
  @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson)

  /// Background color of the form.
  ///
  /// Make sure there is enough contrast with the text color
  Color? backgroundColor,
  @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson)

  ///  Color of the border of the formfields.
  ///
  /// Make sure there is enough contrast with the text color
  /// Only available for Android
  Color? borderColor,

  /// Borderadius of the form
  /// Only available for Android
  int? borderRadius,
}) = _AubecsFormStyle;