Form

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 a specific style for customization:

dart run forui style create labels

Usage

FLabel(...)

1FLabel(
2 style: .delta(labelPadding: .value(.zero)),
3 layout: .vertical,
4 expands: false,
5 variants: {},
6 label: Text('Label'),
7 description: Text('Description'),
8 error: Text('Error message'),
9 child: Placeholder(),
10)

Examples

Vertical

Disabled

Error

On this page