ElegantAlertDialog constructor
ElegantAlertDialog({
- Key? key,
- required ElegantBodyWidget alertContent,
- Color backgroundColor = Colors.white,
- Color? borderColor = Colors.blue,
- List<
Widget> actions = const [], - List<
BoxShadow> ? dialogShadow, - AnimationTypes animationType = AnimationTypes.scaleAnimation,
- Curve animationCurve = Curves.ease,
- Duration animationDuration = const Duration(seconds: 1),
- bool barrierDismissable = true,
- double height = 150,
- double borderRadius = 10,
- double borderSize = 1,
- 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,
});