Feedback
1@override2Widget build(BuildContext _) => const FAlert(3 variant: .primary,4 title: Text('Heads Up!'),5 subtitle: Text('You can add components to your app using the cli.'),6);7CLI
To generate a specific style for customization:
dart run forui style create alertsUsage
FAlert(...)
1FAlert(2 style: .context(),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 variant: .primary,4 title: Text('Heads Up!'),5 subtitle: Text('You can add components to your app using the cli.'),6);7Destructive
1@override2Widget 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