smart_form_fields 0.0.1 copy "smart_form_fields: ^0.0.1" to clipboard
smart_form_fields: ^0.0.1 copied to clipboard

Behavior-first Flutter forms with validation and first-error navigation.

smart_form_fields #

A behavior-first Flutter form package for field registration, synchronous and asynchronous validation, value collection, and navigation to the first invalid field.

This package is under active development and is not ready for production use.

Planned API #

final formKey = SmartFormKey();

SmartForm(
  key: formKey,
  children: [
    SmartEmailField(
      name: 'email',
      labelText: 'Email',
    ),
  ],
);

final result = await formKey.validate();

if (result.isValid) {
  print(result.values['email']);
}

The first release will provide:

  • automatic field registration and lifecycle handling;
  • synchronous and race-safe asynchronous validation;
  • scrolling and focusing the first invalid field;
  • immutable validation results and value snapshots;
  • custom generic fields and common Material field wrappers;
  • localized validation messages;
  • server-side field error injection.

See PLAN.md for the implementation phases, API decisions, test matrix, and release gates.

Current status #

The package foundation, form key/controller API, immutable result model, and internal field registry are implemented. Generic and reusable fields are the next milestone.

0
likes
0
points
587
downloads

Publisher

verified publisherpinz.dev

Weekly Downloads

Behavior-first Flutter forms with validation and first-error navigation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on smart_form_fields