WellFormed class

A convenient well-formed form widget!

It builds a Form within a structure consisting of a SafeArea and Column for the Form instance and related fields, and a ListTile for the action widgets (submission, reset, etc.).

Inheritance

Constructors

WellFormed(List<Widget> fields, {required ToSubmit submit, ToReset? reset, Widget? leading, GlobalKey<FormState>? formKey, Key? key})
A Form that is suitable for the most common scenarios.
WellFormed.app(List<Widget> fields, {bool enabled = true, bool hasReset = true, String title = '', Widget submitChild = const Text('Submit'), Widget resetChild = const Text('Reset'), Widget? leading, VoidCallback? onSub, VoidCallback? onReset, ButtonStyle? submitStyle, ButtonStyle? resetStyle, Axis scrollDirection = Axis.vertical, GlobalKey<FormState>? formKey, Key? submitKey, Key? resetKey, Key? key})
A Form within a MaterialApp container.
WellFormed.btn(List<Widget> fields, {bool enabled = true, bool hasReset = true, Widget submitChild = const Text('Submit'), Widget resetChild = const Text('Reset'), Widget? leading, ButtonStyle? submitStyle, ButtonStyle? resetStyle, VoidCallback? onSub, VoidCallback? onReset, Axis scrollDirection = Axis.vertical, GlobalKey<FormState>? formKey, Key? submitKey, Key? resetKey, Key? key})
Convenient Scrollable Form Widget that contains a ElevatedButton for submission along with an optional reset TextButtonfor resetting all form fields back to their FormField.initialValue.
WellFormed.scroll(List<Widget> fields, {required ToSubmit submit, ToReset? reset, Widget? leading, Axis scrollDirection = Axis.vertical, GlobalKey<FormState>? formKey, Key? key})
Convenient Scrollable Form Widget.

Properties

hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Widget
Builds a well-formed Form widget!
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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