Skip to content
pubscout

super_form

1.2.0, released 4 days ago by pr0gramista.pl

Quick, familiar, and extensible form management and validation for Flutter without code generation.

WASM-readyUses material_ui
$ flutter pub add super_form
Source repository

What it does

Manages form state, values, errors, and touch status without complicated boilerplate. It provides ready-to-use form widgets like text fields, checkboxes, sliders, and rules for validation, while remaining fully reactive for dynamic fields and rules.

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

Use it when

  • You need a straightforward form solution with built-in validation rules.
  • You want to manage form state locally without Redux or BLoC.
  • You require dynamic fields or rules that can change at runtime.

Skip it when

  • You prefer compile-time type safety via code generation.
  • You already manage your entire application state inside a global state management library.

Strengths

  • No complex configuration or code generation required.
  • Fully reactive, supporting dynamic fields and rules in flight.
  • Built-in support for state restoration.

Weaknesses

  • Relies on dynamic types internally rather than static generics.
  • Limited to synchronous validation rules out of the box.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
SuperForm(
  validationMode: ValidationMode.onBlur,
  onSubmit: (values) {
    print(values.toString());
  },
  child: Column(
    children: [
      TextSuperFormField(
        decoration: const InputDecoration(labelText: "Email"),
        name: "email",
        rules: [RequiredRule("Must not be empty")],
      ),
    ],
  ),
)

Alternatives

Packages that do the same job and could replace super_form.

  • acanthis

    A type-safe and composable data validation library for Dart and Flutter.

  • fform

    Build forms with fields, validations, and state management in Flutter.

  • form_validator

    Simplest form validation library for Flutter's form field widgets.

  • rules

    Type-safe, chainable validation library for Dart and Flutter.

Works with

Packages commonly used together with super_form: ones it builds on, ones built on it, and its own family.