Skip to content
pubscout

forme

4.3.1+1, released 4 years ago by qyh.me

A form widget providing rich API to simplify form control and sync/async validation.

WASM-ready
$ flutter pub add forme
Source repository

What it does

Provides form widgets and field wrappers to manage form state, values, and validation synchronously or asynchronously. Includes built-in validators, focus control, and listeners for form changes.

AI-written summary of version 4.3.1+1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a declarative form solution with built-in sync and async validation support.
  • You want to easily listen to field-level or form-level status, validation, and value changes.

Skip it when

  • You prefer using standard Flutter Form and FormField widgets without external dependencies.
  • You need a package from the provided catalog like formz which is not matched

Strengths

  • Rich built-in validators through FormeValidates.
  • Comprehensive listeners for status, validation, and value changes.
  • Supports both sync and async validation with debouncing.

Weaknesses

  • Requires learning a custom form and field API.
  • Additional packages like forme_base_fields may be needed for specific inputs.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

FormeKey key = FormeKey();
Widget child = FormeTextField(name:'username',decoration:const InputDecoration(labelText:'Username'));
Widget forme = Forme(
	key:key,
	child:child,
);

Alternatives

Packages that do the same job and could replace forme.

  • formz

    Provides standalone form input validations for BLoC/Cubit without requiring custom form widget trees.