Form class
A form component that renders text input, single select, boolean and multi-select options.
- Implementers
Constructors
- Form({Key? key, required FormState state, required ScrollController scrollController, required VoidCallback rebuild, double spacing = 1, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 1), VoidCallback? onSubmit})
-
const
- Form.multiScreen({Key? key, required MultiScreenFormState state, required ScrollController scrollController, required VoidCallback rebuild, double spacing, EdgeInsets padding, LogicalKey backButtonActivationKey, LogicalKey nextButtonActivationKey, VoidCallback? onSubmit, String? summaryDescription, String? submitButtonLabel})
-
Creates a Form configured for multi-screen navigation.
Each config is shown on its own screen with Back/Next buttons.
Requires MultiScreenFormState to be used as the state.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
- onSubmit → VoidCallback?
-
Called when Enter is pressed while a text input is focused.
final
- padding → EdgeInsets
-
final
- rebuild → VoidCallback
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController
-
final
- spacing → double
-
final
- state → FormState
-
final
Methods
-
build(
BuildContext context) → Component - Describes the part of the user interface represented by this component.
-
createElement(
) → StatelessElement -
inherited
-
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.
inherited