NormalDialog constructor

NormalDialog({
  1. Key? key,
  2. dynamic onCancel()?,
  3. dynamic onSubmit()?,
  4. String? title,
  5. String? content,
  6. String? cancel,
  7. String? submit,
  8. Color? titleColor = const Color(0xFF333333),
  9. Color? contentColor = const Color(0xFF666666),
  10. Color? cancelColor = const Color(0xFF999999),
  11. Color? submitColor = const Color(0xFF999999),
  12. Color backgroundColor = Colors.white,
  13. bool automaticallyImplyCancelPop = true,
  14. BorderRadius? borderRadius,
  15. EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 44.0),
})

Implementation

NormalDialog({
  Key? key,
  this.onCancel,
  this.onSubmit,
  this.title,
  this.content,
  this.cancel,
  this.submit,
  this.titleColor = const Color(0xFF333333),
  this.contentColor = const Color(0xFF666666),
  this.cancelColor = const Color(0xFF999999),
  this.submitColor = const Color(0xFF999999),
  this.backgroundColor = Colors.white,
  this.automaticallyImplyCancelPop = true,
  BorderRadius? borderRadius,
  this.margin = const EdgeInsets.symmetric(horizontal: 44.0),
})  : borderRadius = borderRadius ?? BorderRadius.circular(12.0),
      super(key: key);