SparkFormItem constructor
const
SparkFormItem({
- Key? key,
- required String fieldName,
- required Widget child,
- Axis? direction,
- WidgetThemeBuilder? labelBuilder,
- String? label,
- bool? isRequired,
- List<
SparkValidator> ? rules, - double? labelWidth,
- EdgeInsets? labelPadding,
- FocusDecoration? decoration,
- bool? readOnly = false,
- EdgeInsets? padding,
- EdgeInsets? margin,
- TextStyle? labelStyle,
- bool? crossCenter,
- TextStyle? errorStyle,
- EdgeInsets? errorContentPadding,
- Widget? labelSuffix,
- Widget? appendWidget,
- AppendChildBuilder? appendWidgetBuilder,
Implementation
const SparkFormItem({
Key? key,
required this.fieldName,
required this.child,
this.direction,
this.labelBuilder,
this.label,
this.isRequired,
this.rules,
this.labelWidth,
this.labelPadding,
this.decoration,
this.readOnly = false,
this.padding,
this.margin,
this.labelStyle,
this.crossCenter,
this.errorStyle,
this.errorContentPadding,
this.labelSuffix,
this.appendWidget,
this.appendWidgetBuilder,
}) : super(key: key);