GFAlert constructor
const
GFAlert({
- Key? key,
- String? content,
- String? title,
- Widget? child,
- Color? backgroundColor,
- double? width,
- GFAlertType type = GFAlertType.basic,
- Alignment? alignment,
- Widget? contentChild,
- Widget? bottombar,
- TextStyle contentTextStyle = const TextStyle(color: Colors.black87),
- TextStyle titleTextStyle = const TextStyle(color: Colors.black87, fontSize: 17, fontWeight: FontWeight.w500),
Alert has to be wrap inside the body like GFFloatingWidget. See GFFloatingWidget
Implementation
const GFAlert(
{Key? key,
this.content,
this.title,
this.child,
this.backgroundColor,
this.width,
this.type = GFAlertType.basic,
this.alignment,
this.contentChild,
this.bottombar,
this.contentTextStyle = const TextStyle(color: Colors.black87),
this.titleTextStyle = const TextStyle(
color: Colors.black87,
fontSize: 17,
fontWeight: FontWeight.w500,
)})
: super(key: key);