SparkFormItem class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SparkFormItem
Constructors
-
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}) -
const
Properties
- appendWidget → Widget?
-
final
- appendWidgetBuilder → AppendChildBuilder?
-
final
- child → Widget
-
form widget builder
final
- crossCenter → bool?
-
cross use CrossAxisAlignment.center
final
- decoration → FocusDecoration?
-
form item decoration
final
- direction → Axis?
-
form layout direction, set title layout in top or left
final
- errorContentPadding → EdgeInsets?
-
tip message content layout
final
- errorStyle → TextStyle?
-
error tip message style
final
- fieldName → String
-
form item bind field name
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRequired → bool?
-
form item is required
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
form label name
final
- labelBuilder → WidgetThemeBuilder?
-
form label widget builder
final
- labelPadding → EdgeInsets?
-
setup label layout padding
final
- labelStyle → TextStyle?
-
set label text style
final
- labelSuffix → Widget?
-
label suffix, is left label text suffix
not form item right suffix
final
- labelWidth → double?
-
label width
final
- margin → EdgeInsets?
-
form item content margin
final
- padding → EdgeInsets?
-
form item content padding
final
- readOnly → bool?
-
set form item response focusNode
if false, focus style is not change
FocusPointerScope.shadow
final
-
rules
→ List<
SparkValidator> ? -
value check rules
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited