Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
FormControl
FormControl({
super.key,
required FormFieldBuilder<T> builder,
super.initialValue,
super.validator,
super.onSaved,
super.enabled,
super.autovalidateMode,
super.forceErrorText,
this.showError = true,
this.validateOnBlur = true,
this.revalidateOnChange = true,
Widget Function(BuildContext context, String error)? errorBuilder,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
builder | FormFieldBuilder<T> | Yes | — |
initialValue | Inherited | No | Inherited |
validator | Inherited | No | Inherited |
onSaved | Inherited | No | Inherited |
enabled | Inherited | No | Inherited |
autovalidateMode | Inherited | No | Inherited |
forceErrorText | Inherited | No | Inherited |
showError | bool | No | true |
validateOnBlur | bool | No | true |
revalidateOnChange | bool | No | true |
errorBuilder | Widget Function(BuildContext context, String error)? | No | null |
FluttyUI re-exports Flutter’s widgets-layer Form and FormField primitives. FormControl<T>, documented above, adds shared validation behavior. Wrap controls in Form and use a GlobalKey<FormState> to validate or save.
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/forms/form/form_control.dart
This reference is generated from the FormControl declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

