GFAlert constructor

const GFAlert({
  1. Key? key,
  2. String? content,
  3. String? title,
  4. Widget? child,
  5. Color? backgroundColor,
  6. double? width,
  7. GFAlertType type = GFAlertType.basic,
  8. Alignment? alignment,
  9. Widget? contentChild,
  10. Widget? bottombar,
  11. TextStyle contentTextStyle = const TextStyle(color: Colors.black87),
  12. 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);