CustomAnimatedDialog constructor
CustomAnimatedDialog({
- Key? key,
- required BuildContext context,
- required String dialogAnimatedIconPath,
- required String dialogContentText,
- required String mainButtonText,
- String additionalButtonText = '',
- bool needTwoButtons = false,
- bool needMainButtonOutline = false,
- bool needAdditionalButtonOutline = false,
- Color mainButtonBackgroundColor = Colors.black,
- Color mainButtonBorderColor = Colors.black,
- Color mainButtonTextColor = Colors.white,
- Color additionalButtonBackgroundColor = Colors.black,
- Color additionalButtonBorderColor = Colors.black,
- Color additionalButtonTextColor = Colors.white,
- Color dialogContentTextColor = Colors.black,
- double dialogContentTextFontSize = 18,
- FontWeight dialogContentTextFontWeight = FontWeight.w600,
- required void mainButtonOnPressed(),
- void additionalButtonOnPressed()?,
Implementation
CustomAnimatedDialog({
super.key,
required this.context,
required this.dialogAnimatedIconPath,
required this.dialogContentText,
required this.mainButtonText,
this.additionalButtonText = '',
this.needTwoButtons = false,
this.needMainButtonOutline = false,
this.needAdditionalButtonOutline = false,
this.mainButtonBackgroundColor = Colors.black,
this.mainButtonBorderColor = Colors.black,
this.mainButtonTextColor = Colors.white,
this.additionalButtonBackgroundColor = Colors.black,
this.additionalButtonBorderColor = Colors.black,
this.additionalButtonTextColor = Colors.white,
this.dialogContentTextColor = Colors.black,
this.dialogContentTextFontSize = 18,
this.dialogContentTextFontWeight = FontWeight.w600,
required this.mainButtonOnPressed,
this.additionalButtonOnPressed,
});