Feedback

Alert

Displays a callout for user attention.

FAlert(
  title: const Text('Heads Up!'),
  subtitle: const Text('You can add components to your app using the cli.'),
  style: FAlertStyle.primary(),
);

CLI

To generate and customize this style:

dart run forui style create alerts

Usage

FAlert(...)

FAlert(
  title: const Text('Heads Up!'),
  icon: const Icon(FIcons.circleAlert),
  subtitle: const Text('You can add components to your app using the cli.'),
  style: FAlertStyle.primary(),
);

Examples

Primary

FAlert(
  title: const Text('Heads Up!'),
  subtitle: const Text('You can add components to your app using the cli.'),
  style: FAlertStyle.primary(),
);

Destructive

FAlert(
  title: const Text('Heads Up!'),
  subtitle: const Text('You can add components to your app using the cli.'),
  style: FAlertStyle.destructive(),
);

On this page