NormalDialog constructor
NormalDialog({
- Key? key,
- dynamic onCancel()?,
- dynamic onSubmit()?,
- String? title,
- String? content,
- String? cancel,
- String? submit,
- Color? titleColor = const Color(0xFF333333),
- Color? contentColor = const Color(0xFF666666),
- Color? cancelColor = const Color(0xFF999999),
- Color? submitColor = const Color(0xFF999999),
- Color backgroundColor = Colors.white,
- bool automaticallyImplyCancelPop = true,
- BorderRadius? borderRadius,
- 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);