DynamicForm class
Both Android and IOS
Form's documentation:
Cupertino's CupertinoFormSection's documentation:
Returns a form Widget depending on this user's devices' operating system.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DynamicForm
Constructors
-
DynamicForm({Key? key, WillPopCallback? onWillPop, VoidCallback? onChanged, List<
Widget> ? leadingChildren, required List<DynamicFormField> formFieldList, List<Widget> ? trailingChildren, AutovalidateMode? autoValidateMode, Widget? header, EdgeInsetsGeometry margin = EdgeInsets.zero, Color backgroundColor = CupertinoColors.systemGroupedBackground, BoxDecoration? decoration, Clip clipBehavior = Clip.none})
Properties
- autoValidateMode → AutovalidateMode
-
Used to enable/disable form fields auto validation and update their error
text.
final
- backgroundColor → Color
-
Sets the background color behind the section.
final
- clipBehavior → Clip
-
The content will be clipped (or not) according to this option.
final
- decoration → BoxDecoration?
-
Sets the decoration around
children
.final -
Sets the form section footer. The section footer lies below the
children
rows.final -
formFieldList
→ List<
DynamicFormField> -
Both Android and IOS
final
-
formKey
→ GlobalKey<
FormState> -
A unique Key for a form so that the form cannot have more than one instance of itself.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
Sets the form section header. The section header lies above the
children
rows.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
leadingChildren
→ List<
Widget> ? -
The content you want above the form fields.
final
- margin → EdgeInsetsGeometry
-
Margin around the content area of the section encapsulating
children
.final - onChanged → VoidCallback?
-
Called when one of the form fields changes.
final
- onWillPop → WillPopCallback?
-
Enables the form to veto attempts by the user to dismiss the ModalRoute
that contains the form.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
trailingChildren
→ List<
Widget> ? -
The content you want below the form fields.
final
Methods
-
buildPlatformFormFieldsInColumn(
) → Widget - Builds all form fields in a Column based on this user's device's operating system.
-
buildPlatformFormFieldsWidgets(
) → List< Widget> -
Builds each
CustomFormField
in formFieldList as aWidget
based on this user's device's operating system. -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → DynamicFormState - Creates the mutable state for this widget at a given location in the tree.
-
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