signal_form library

Classes

Field<T>
A reactive form field that holds a typed value, runs validators, and notifies listeners whenever its state changes.
FormBuildContext
Context for building forms, avoiding static state issues
FormController<T>
Manages a group of Fields created by formCtrl, coordinating their validation, state, and serialization as a single reactive unit.
FormTracker
SignalCheckbox
A reactive CheckboxListTile bound to a Field<bool>.
SignalCheckboxGroup<T>
A reactive group of checkboxes for multiple-selection, bound to a Field<List<T>>.
SignalChoiceChip<T>
A reactive group of ChoiceChip widgets for single-value selection, bound to a Field<T>.
SignalDateRangePicker
A reactive date-range picker bound to a Field<DateTimeRange>.
SignalDateTimePicker
A reactive date picker bound to a Field<DateTime>.
SignalDropdown<T>
A reactive DropdownButtonFormField bound to a Field<T>.
SignalFieldOption<T>
A labelled value for selection widgets such as SignalRadioGroup, SignalCheckboxGroup, SignalFilterChip, and SignalChoiceChip.
SignalFilterChip<T>
A reactive group of FilterChip widgets for multiple-selection, bound to a Field<List<T>>.
SignalFormField<T>
A generic reactive wrapper that rebuilds whenever field changes.
SignalRadioGroup<T>
A reactive group of radio buttons for single-value selection, bound to a Field<T>.
SignalRangeSlider
A reactive RangeSlider bound to a Field<RangeValues>.
SignalSlider
A reactive Slider bound to a Field<double>.
SignalSwitch
A reactive SwitchListTile bound to a Field<bool>.
SignalTextField
A reactive Material Design text field bound to a Field<String>.

Enums

ValidationMode
Controls when a Field runs its validators automatically.

Extensions

BoolFieldValidators on Field<bool>
Validation extensions for Field<bool>.
DateTimeFieldValidators on Field<DateTime>
Validation extensions for Field<DateTime>.
DateTimeRangeFieldValidators on Field<DateTimeRange<DateTime>>
Validation extensions for Field<DateTimeRange>.
DoubleFieldValidators on Field<double>
Validation extensions for Field<double>.
GenericFieldValidators on Field<T>
Generic validation extensions available on any Field<T>.
IntFieldValidators on Field<int>
Validation extensions for Field<int>.
ListFieldValidators on Field<List<T>>
Validation and mutation extensions for Field<List<T>>.
NumFieldValidators on Field<num>
Validation extensions for Field<num> (covers both int and double).
StringFieldValidators on Field<String>
Validation and helper extensions for Field<String>.

Functions

formCtrl<T>(T builder()) FormController<T>
Creates a FormController by running builder inside a tracked context that captures every Field constructed during the call.
formGroup<T>(String name, T builder(), {bool applyWhen(ValueOf valueOf)?}) → T
Defines a named group of fields within a formCtrl builder, scoping all Fields created inside builder under the given name prefix.

Typedefs

ValueOf = Field<T> Function<T>(String path)
A function type used inside conditional validators to look up another field's current value by its dot-notation path.