Skip to Content
Forui 0.12.0 is released 🎉

Label

Describes a form field with a label, description, and error message (if any). This widget is usually used for custom form fields. All form fields in Forui come with this widget wrapped.

CLI

To generate and customize this style:

dart run forui style create label

Usage

FLabel(...)

FLabel( style: FLabelStyle(...), axis: Axis.horizontal, label: const Text('Accept terms and conditions'), description: const Text('You agree to our terms and conditions.'), error: const Text('Please accept the terms and conditions.'), states: { WidgetState.error }, child: const Placeholder(), );

Examples

Vertical

Disabled

Error

Last updated on