FAlert constructor
const
FAlert({
- required Widget title,
- Widget icon = const Icon(FIcons.circleAlert),
- Widget? subtitle,
- FBaseAlertStyle style = FAlertStyle.primary,
- Key? key,
Creates a FAlert with a title, subtitle, and icon.
The alert's layout is as follows:
|---------------------------|
| [icon] [title] |
| [subtitle] |
|---------------------------|
Implementation
const FAlert({
required this.title,
this.icon = const Icon(FIcons.circleAlert),
this.subtitle,
this.style = FAlertStyle.primary,
super.key,
});