DynamicDialog constructor
DynamicDialog({
- Key? key,
- required Widget child,
- Color backgroundColor = Colors.white,
- ShapeBorder? shape,
- AlignmentGeometry alignment = Alignment.center,
- EdgeInsets insetPadding = EdgeInsets.zero,
- EdgeInsets? padding,
- double? radius,
- double? topRadius,
- double topLeftRadius = 0,
- double topRightRadius = 0,
- double? bottomRadius,
- double bottomLeftRadius = 0,
- double bottomRightRadius = 0,
Implementation
DynamicDialog(
{Key? key,
required Widget child,
Color backgroundColor = Colors.white,
ShapeBorder? shape,
AlignmentGeometry alignment = Alignment.center,
EdgeInsets insetPadding = EdgeInsets.zero,
EdgeInsets? padding,
double? radius,
double? topRadius,
double topLeftRadius = 0,
double topRightRadius = 0,
double? bottomRadius,
double bottomLeftRadius = 0,
double bottomRightRadius = 0})
: super(
key: key,
elevation: 0,
backgroundColor: backgroundColor,
alignment: alignment,
insetPadding: insetPadding,
shape: shape ??
RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(radius ?? topRadius ?? topLeftRadius),
topRight: Radius.circular(radius ?? topRadius ?? topRightRadius),
bottomLeft: Radius.circular(radius ?? bottomRadius ?? bottomLeftRadius),
bottomRight: Radius.circular(radius ?? bottomRadius ?? bottomRightRadius))),
child: padding == null ? child : Padding(padding: padding, child: child));