flutter_auto_form library
Classes
- AFBooleanField
- AFDateField
- The default Field extended class used to represent a form's number field.
-
AFFormState<
T extends AFFormStatefulWidget< G> , G extends TemplateForm> - The AFFormState allows to override and customize even more the behavior of the form widget's logic.
-
AFFormStatefulWidget<
T> -
AFMultipleSubFormField<
T extends TemplateForm> -
AFMultipleSubFormFieldWidget<
T extends TemplateForm> -
AFMultipleSubFormFieldWidgetState<
T extends TemplateForm> -
AFNumberField<
T extends num> - The default Field extended class used to represent a form's number field.
-
AFSearchModelField<
T extends Object> -
AFSearchMultipleModelsField<
T extends Object> -
AFSelectField<
T extends Object> -
AFSubFormField<
T extends TemplateForm> -
AFSubFormFieldWidget<
T extends TemplateForm> -
AFSubFormFieldWidgetState<
T extends TemplateForm> -
AFTextField<
T extends Object> - The default Field extended class used to represent a form's text field.
- AFTextFieldWidget
-
AFTextFieldWidgetStateFocusHelper<
T extends FieldStatefulWidget> - AFTheme
- AFThemeData
- AFTimeField
- The default Field extended class used to represent a form's number field.
-
AFWidget<
T extends TemplateForm> -
AFWidgetState<
T extends TemplateForm> - AlphanumericValidator
- Checks whether a given string only comports alphanumerical characters.
- BooleanFieldWidget
-
DateFieldWidget<
T extends Object> - EmailValidator
- Checks whether an email string is valid.
-
Field<
T> - This class is the base class for any type of custom fields you would want to create. See the AFTextField widget to learn more on how to extend it.
- FieldContext
-
FieldState<
T extends FieldStatefulWidget> - FieldStatefulWidget
- FormValidator
-
FuncValidator<
T> -
GreaterThanFieldValidator<
T extends num> - Checks whether the value of a givGreaterThanFieldValidator of another field.
- HexColorValidator
- Checks whether a given hex color string is valid. Null is deemed as an acceptable url.
-
IsIntegerValidator<
T extends num> - Checks whether a given value is an integer.
- JsonSchemaForm
-
MaxValueValidator<
T extends num> - Checks whether a given num is smaller (or equal) than a maximum value.
- MinimumStringLengthValidator
- Checks whether a given string possess a minimum length.
-
MinValueValidator<
T extends num> - Checks whether a given num is greater (or equal) than a minimum value.
-
NotEmptyListValidator<
T> - Checks whether a given value isn't empty.
- NotEmptyStringValidator
- Checks whether a given string isn't empty.
-
NotNullValidator<
T> - Checks whether a given value isn't null.
-
SameAsFieldValidator<
T> - Checks whether the value of a given field equals the value of another field.
- SearchModelFieldSelectedItem
-
SearchModelFieldWidget<
T extends Object> -
SearchMultipleModelsField<
T extends Object> - ShouldBeTrueValidator
- Checks whether a boolean value is set to true.
- TemplateForm
- An abstract class that makes it easy to create form with a strong validation system.
- URLValidator
- Checks whether a given url string is valid. Null is deemed as an acceptable url.
-
Validator<
T extends Object?> - The Validator class is used by the Field class to validate its input.
-
ValidatorWithStaticError<
T extends Object?> - As its name suggests, this class makes it easier to create a validator which returns a static error message (that does not change based on the data).
Enums
- AFTextFieldType
- The different types of field for the AFTextField.
- HexColorValidatorMode
- An enum used by the HexColorValidator to specify which format of hex color is accepted.
Mixins
Functions
-
buildValidators<
T> (JsonSchemaProperty< Object> element, bool required) → List<Validator< T> > -
kShowFutureLoadingDialog<
T> ({required BuildContext context, required FutureOr< T> future}) → Future<T> -
The default loading dialog builder used by the AFTheme widget.
See
FutureLoadingWidget
if you want to create your own loading dialog compatible with the requirement of the AFTheme.
Typedefs
-
FieldValueParser<
T> = T Function(String value) - FieldWidgetConstructor = Widget Function({required FieldContext fieldContext, Key? key})
- The interface for the Field.widgetBuilder method which builds a widget from information available in the FieldContext instance it receives.
-
FutureWrapper<
T> = FutureOr< T> Function({required BuildContext context, required FutureOr<T> future}) -
An interface for the future loader. See
kShowFutureLoadingWidget
for an example of a working implementation.