Form

Button

A button.

CLI

To generate a specific style for customization:

dart run forui style create buttons

Usage

FButton(...)

1FButton(
2 style: const .context(),
3 selected: false,
4 onPress: () {},
5 builder: FButton.defaultContentBuilder,
6 child: const Text('Button'),
7)

FButton.icon(...)

1FButton.icon(
2 style: const .context(),
3 selected: false,
4 onPress: () {},
5 builder: FButton.defaultIconContentBuilder,
6 child: const Icon(FLucideIcons.mail),
7)

FButton.raw(...)

1FButton.raw(
2 style: const .context(),
3 selected: false,
4 onPress: () {},
5 child: const Text('Button'),
6)

Examples

Appearance

Primary

Secondary

Destructive

Outline

Ghost

Sizes

Toggleable

Content

With Text and Icon

With Only Icon

With Circular Progress

On this page