VAlertConfig constructor

const VAlertConfig({
  1. AnimationType animationType = AnimationType.fromBottom,
  2. Duration animationDuration = const Duration(milliseconds: 200),
  3. ShapeBorder? alertBorder,
  4. bool isButtonVisible = true,
  5. bool isCloseButton = true,
  6. bool isOverlayTapDismiss = true,
  7. Color? backgroundColor,
  8. Color overlayColor = Colors.black87,
  9. TextStyle titleStyle = const TextStyle(color: Colors.black, fontSize: 15, fontWeight: FontWeight.bold, fontStyle: FontStyle.normal),
  10. TextAlign titleTextAlign = TextAlign.center,
  11. TextStyle descStyle = const TextStyle(fontSize: 13, color: Colors.black, decoration: TextDecoration.none),
  12. TextAlign descTextAlign = TextAlign.center,
  13. EdgeInsets buttonAreaPadding = const EdgeInsets.all(0),
  14. BoxConstraints? constraints,
  15. ButtonsDirection buttonsDirection = ButtonsDirection.row,
  16. double? alertElevation,
  17. EdgeInsets alertPadding = defaultAlertPadding,
  18. AlignmentGeometry alertAlignment = Alignment.center,
  19. bool isTitleSelectable = false,
  20. bool isDescSelectable = false,
  21. EdgeInsets? titlePadding,
  22. EdgeInsets descPadding = const EdgeInsets.all(0.0),
  23. Border? buttonBorder,
  24. bool hasBorder = false,
  25. String borderColor = "#f2f2f2",
})

Implementation

const VAlertConfig(
    {this.animationType = AnimationType.fromBottom,
      this.animationDuration = const Duration(milliseconds: 200),
      this.alertBorder,
      this.isButtonVisible = true,
      this.isCloseButton = true,
      this.isOverlayTapDismiss = true,
      this.backgroundColor,
      this.overlayColor = Colors.black87,
      this.titleStyle = const TextStyle(color: Colors.black,fontSize: 15, fontWeight: FontWeight.bold, fontStyle: FontStyle.normal),
      this.titleTextAlign = TextAlign.center,
      this.descStyle = const TextStyle(
        fontSize: 13,
        color: Colors.black,
        decoration: TextDecoration.none,
      ),
      this.descTextAlign = TextAlign.center,
      this.buttonAreaPadding = const EdgeInsets.all(0),
      this.constraints,
      this.buttonsDirection = ButtonsDirection.row,
      this.alertElevation,
      this.alertPadding = defaultAlertPadding,
      this.alertAlignment = Alignment.center,
      this.isTitleSelectable = false,
      this.isDescSelectable = false,
      this.titlePadding,
      this.descPadding = const EdgeInsets.all(0.0),
      this.buttonBorder,
      this.hasBorder=false,
      this.borderColor="#f2f2f2"
    });