Feedback
1@override2Widget build(BuildContext _) => const FAlert(3 variants: {},4 title: Text('Heads Up!'),5 subtitle: Text('You can add components to your app using the cli.'),6);7CLI
To generate and customize this style:
dart run forui style create alertsUsage
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@override2Widget build(BuildContext _) => const FAlert(3 variants: {},4 title: Text('Heads Up!'),5 subtitle: Text('You can add components to your app using the cli.'),6);7Destructive
1@override2Widget build(BuildContext _) => FAlert(3 variants: {.destructive},4 title: const Text('Heads Up!'),5 subtitle: const Text('You can add components to your app using the cli.'),6);7