turbo_forms library

Type-safe form field configuration and validation for Flutter with ShadCN UI integration.

Classes

StatelessTFormField
A stateless form field layout widget with label, description, error, and disabled/read-only state handling.
TErrorLabel
Animated error label that expands/collapses based on validation state.
TFormConfig
Abstract base class for managing a collection of form field configurations.
TFormField<T>
A reactive form field widget that rebuilds when its TFormFieldConfig changes.
TFormFieldBuilder<T>
A ValueListenableBuilder wrapper that rebuilds when the given TFormFieldConfig notifies of state changes.
TFormFieldConfig<T>
Reactive configuration and state manager for a single form field.
TFormFieldState<T>
Immutable state snapshot for a TFormFieldConfig.
TurboFormsDefaults
Default constants for animation durations, sizing, and layout used throughout turbo_forms widgets.
VerticalShrink
Animated widget that vertically expands/collapses its child with coordinated size and fade transitions.

Enums

TFieldType
Enumerates the supported form field types.

Extensions

FormFieldConfigStringExtension on TFormFieldConfig<String>
Convenience extensions for string-typed form field configurations.
TurboFormNumExtension on num
Numeric utilities for form field value handling.
TurboFormObjectExtension on Object
Type casting utility for form field values.
TurboFormStringExtension on String
String utilities for form field parsing and comparison.

Typedefs

TFormFieldBuilderDef<T> = Widget Function(BuildContext context, TFormFieldConfig<T> config, Widget? child)
Builder callback signature for constructing form field UI from a TFormFieldConfig.
ValuesValidatorDef<T> = String? Function(List<T>? values)
Validator callback for multi-value form fields.