FormStyle class

Class for defining styles for Form.

Some parameters may not be supported depending on the type of form.

Form用のスタイルを定義するためのクラス。

フォームの種類によっては対応できないパラメーターもあります。

Annotations

Constructors

FormStyle({EdgeInsetsGeometry? padding, AlignmentGeometry? alignment, EdgeInsetsGeometry? contentPadding, InputBorder? border, InputBorder? disabledBorder, InputBorder? errorBorder, Color? backgroundColor, TextStyle? activeTextStyle, TextStyle? disabledTextStyle, double? height, double? width, Color? color, double? borderWidth, TextStyle? textStyle, TextStyle? errorTextStyle, Color? subColor, Color? errorColor, Color? cursorColor, Color? borderColor, OutlinedBorder? shape, Color? disabledColor, BorderRadius? borderRadius, Color? disabledBackgroundColor, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, Color? activeColor, Color? activeBackgroundColor, FormAffixStyle? prefix, FormAffixStyle? suffix, double elevation = 8.0, FormInputBorderStyle borderStyle = FormInputBorderStyle.none, bool alignedDropdown = false})
Class for defining styles for Form.
const

Properties

activeBackgroundColor Color?
Background color when the item is active.
final
activeColor Color?
Color when the item is active.
final
activeTextStyle TextStyle?
Text style when the item is active.
final
alignedDropdown bool
Whether to align the dropdown menu.
final
alignment AlignmentGeometry?
Form position.
final
backgroundColor Color?
Form Background.
final
border InputBorder?
Normal border of the form.
final
borderColor Color?
Border color.
final
borderRadius BorderRadius?
Roundness of the border.
final
borderStyle FormInputBorderStyle
Border style.
final
borderWidth double?
Border width.
final
color Color?
Main color of the form. The color of the text and icons.
final
contentPadding EdgeInsetsGeometry?
Padding of form content.
final
cursorColor Color?
Text cursor color.
final
disabledBackgroundColor Color?
Background color when deactivated.
final
disabledBorder InputBorder?
Border when deactivated. If not specified, border is used.
final
disabledColor Color?
Text color when deactivated, etc.
final
disabledTextStyle TextStyle?
Text style when deactivated, etc.
final
elevation double
Specify the height of the Z axis in the drop-down menu.
final
errorBorder InputBorder?
Border on error. If not specified, border is used.
final
errorColor Color?
Text color in case of error, etc.
final
errorTextStyle TextStyle?
Text style for errors.
final
hashCode int
The hash code for this object.
no setteroverride
height double?
Form Height.
final
padding EdgeInsetsGeometry?
Padding on the outside of the form.
final
prefix FormAffixStyle?
A widget that is placed in front of the form.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape OutlinedBorder?
Class for defining the shape of forms such as FormCheckbox.
final
subColor Color?
Form sub-colors. Color of hint text, etc.
final
suffix FormAffixStyle?
A widget that is placed after the form.
final
textAlign TextAlign
Horizontal align of the text.
final
textAlignVertical TextAlignVertical?
Vertical align of the text.
final
textStyle TextStyle?
Text Style.
final
width double?
Form width.
final

Methods

copyWith({double? height, double? width, BorderRadius? borderRadius, Color? cursorColor, InputBorder? border, InputBorder? disabledBorder, InputBorder? errorBorder, double? borderWidth, TextStyle? textStyle, Color? backgroundColor, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? contentPadding, Color? color, Color? subColor, Color? errorColor, TextAlign? textAlign, Color? borderColor, Color? disabledColor, Color? disabledBackgroundColor, FormAffixStyle? prefix, FormAffixStyle? suffix, TextAlignVertical? textAlignVertical, OutlinedBorder? shape, FormInputBorderStyle? borderStyle, double? elevation, bool? alignedDropdown, TextStyle? disabledTextStyle, TextStyle? errorTextStyle, TextStyle? activeTextStyle, Color? activeBackgroundColor, Color? activeColor}) FormStyle
Create another FormStyle, changing the parameters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override