Skip to content

v0.1.0 — Initial Release

Latest

Choose a tag to compare

@SahilSharma2710 SahilSharma2710 released this 21 Feb 09:18
· 11 commits to main since this release

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:

  • FormController with typed fields, sync/async/cross-field validation, and submission
  • FormWidget with type-to-widget mapping and error display
  • FormData class for typed submission

Install

dependencies:
  form_forge: ^0.1.0

dev_dependencies:
  form_forge_generator: ^0.1.0
  build_runner: ^2.4.0

Links