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.
Preview
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
Preview
Disabled
Preview
Error
Preview
Last updated on