Feedback

Alert

Displays a callout for user attention.

1@override
2Widget build(BuildContext _) => const FAlert(
3 variant: null,
4 title: Text('Heads Up!'),
5 subtitle: Text('You can add components to your app using the cli.'),
6);
7

CLI

To generate and customize this style:

dart run forui style create alerts

Usage

FAlert(...)

1FAlert(
2 style: .inherit(),
3 icon: Icon(FIcons.circleAlert),
4 title: Text('Alert Title'),
5 subtitle: Text('Alert subtitle with more details'),
6)

Examples

Primary

1@override
2Widget build(BuildContext _) => const FAlert(
3 variant: null,
4 title: Text('Heads Up!'),
5 subtitle: Text('You can add components to your app using the cli.'),
6);
7

Destructive

1@override
2Widget build(BuildContext _) => const FAlert(
3 variant: .destructive,
4 title: Text('Heads Up!'),
5 subtitle: Text('You can add components to your app using the cli.'),
6);
7

On this page