Documentation
Label

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 comes with this widget wrapped.

Usage

FLabel(...)

FLabel(
    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.'),
    state: FLabelState.error,
    child: const Placeholder(),
);

Examples

Vertical

Disabled

Error