style property

FButtonStyleDelta style
final

The style delta applied to the style resolved by variant and size.

FButton(
  variant: .destructive,
  size: .sm,
  style: .delta(contentStyle: .delta(padding: .all(20))),
  onPress: () {},
  child: Text('Small destructive button with extra padding'),
)

CLI

To generate and customize this style:

dart run forui style create buttons

Implementation

final FButtonStyleDelta style;