InfoDialog constructor

const InfoDialog({
  1. Key? key,
  2. Widget? child,
  3. String? message,
  4. FutureOr onCancel()?,
  5. String? onCancelText,
  6. Color? onCancelTextColor,
  7. FutureOr onApply()?,
  8. String? onApplyText,
  9. Color? onApplyTextColor,
  10. bool showCancelButton = true,
  11. bool showApplyButton = true,
  12. double borderRadius = 10.0,
  13. Color backgroundColor = Colors.white,
  14. Color actionLineColor = const Color(0xFFF0F2F4),
  15. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 25),
})

Implementation

const InfoDialog({
  super.key,
  this.child,
  this.message,
  this.onCancel,
  this.onCancelText,
  this.onCancelTextColor,
  this.onApply,
  this.onApplyText,
  this.onApplyTextColor,
  this.showCancelButton = true,
  this.showApplyButton = true,
  this.borderRadius = 10.0,
  this.backgroundColor = Colors.white,
  this.actionLineColor = const Color(0xFFF0F2F4),
  this.contentPadding = const EdgeInsets.symmetric(vertical: 25),
});