form_forge v0.1.0
The first release of form_forge — a code-generation powered form engine for Flutter.
What's Included
Annotations:
@FormForge()— marks a class for code generation@IsRequired(),@IsEmail(),@MinLength(n),@MaxLength(n),@PatternValidator(regex),@Min(n),@Max(n)— built-in validators@MustMatch('field')— cross-field validation@AsyncValidate()— async validation with debounce@FieldWidget(Type)— custom widget override
Generated Code:
FormControllerwith typed fields, sync/async/cross-field validation, and submissionFormWidgetwith type-to-widget mapping and error displayFormDataclass for typed submission
Install
dependencies:
form_forge: ^0.1.0
dev_dependencies:
form_forge_generator: ^0.1.0
build_runner: ^2.4.0