DynamicDialog constructor

DynamicDialog({
  1. Key? key,
  2. required Widget child,
  3. Color backgroundColor = Colors.white,
  4. ShapeBorder? shape,
  5. AlignmentGeometry alignment = Alignment.center,
  6. EdgeInsets insetPadding = EdgeInsets.zero,
  7. EdgeInsets? padding,
  8. double? radius,
  9. double? topRadius,
  10. double topLeftRadius = 0,
  11. double topRightRadius = 0,
  12. double? bottomRadius,
  13. double bottomLeftRadius = 0,
  14. 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));