CustomAnimatedDialog constructor

CustomAnimatedDialog({
  1. Key? key,
  2. required BuildContext context,
  3. required String dialogAnimatedIconPath,
  4. required String dialogContentText,
  5. required String mainButtonText,
  6. String additionalButtonText = '',
  7. bool needTwoButtons = false,
  8. bool needMainButtonOutline = false,
  9. bool needAdditionalButtonOutline = false,
  10. Color mainButtonBackgroundColor = Colors.black,
  11. Color mainButtonBorderColor = Colors.black,
  12. Color mainButtonTextColor = Colors.white,
  13. Color additionalButtonBackgroundColor = Colors.black,
  14. Color additionalButtonBorderColor = Colors.black,
  15. Color additionalButtonTextColor = Colors.white,
  16. Color dialogContentTextColor = Colors.black,
  17. double dialogContentTextFontSize = 18,
  18. FontWeight dialogContentTextFontWeight = FontWeight.w600,
  19. required void mainButtonOnPressed(),
  20. 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,
});