ElegantAlertDialog constructor

ElegantAlertDialog({
  1. Key? key,
  2. required ElegantBodyWidget alertContent,
  3. Color backgroundColor = Colors.white,
  4. Color? borderColor = Colors.blue,
  5. List<Widget> actions = const [],
  6. List<BoxShadow>? dialogShadow,
  7. AnimationTypes animationType = AnimationTypes.scaleAnimation,
  8. Curve animationCurve = Curves.ease,
  9. Duration animationDuration = const Duration(seconds: 1),
  10. bool barrierDismissable = true,
  11. double height = 150,
  12. double borderRadius = 10,
  13. double borderSize = 1,
  14. bool withAnimation = true,
})

Implementation

ElegantAlertDialog({
  super.key,
  required this.alertContent,
  this.backgroundColor = Colors.white,
  this.borderColor = Colors.blue,
  this.actions = const [],
  this.dialogShadow,
  this.animationType = AnimationTypes.scaleAnimation,
  this.animationCurve = Curves.ease,
  this.animationDuration = const Duration(
    seconds: 1,
  ),
  this.barrierDismissable = true,
  this.height = 150,
  this.borderRadius = 10,
  this.borderSize = 1,
  this.withAnimation = true,
});