SmoothContainer constructor

SmoothContainer({
  1. Key? key,
  2. double smoothness = 1,
  3. BorderRadiusGeometry borderRadius = BorderRadius.zero,
  4. BorderSide side = BorderSide.none,
  5. Widget? child,
  6. double? width,
  7. double? height,
  8. AlignmentGeometry? alignment,
  9. EdgeInsetsGeometry? padding,
  10. Color? color,
  11. Decoration? foregroundDecoration,
  12. BoxConstraints? constraints,
  13. EdgeInsetsGeometry? margin,
  14. Matrix4? transform,
  15. AlignmentGeometry? transformAlignment,
})

Implementation

SmoothContainer({
  Key? key,
  this.smoothness = 1,
  this.borderRadius = BorderRadius.zero,
  this.side = BorderSide.none,
  Widget? child,
  double? width,
  double? height,
  AlignmentGeometry? alignment,
  EdgeInsetsGeometry? padding,
  Color? color,
  Decoration? foregroundDecoration,
  BoxConstraints? constraints,
  EdgeInsetsGeometry? margin,
  Matrix4? transform,
  AlignmentGeometry? transformAlignment,
}) : super(
        key: key,
        child: child,
        width: width,
        height: height,
        alignment: alignment,
        padding: padding ?? EdgeInsets.all(side.width),
        foregroundDecoration: foregroundDecoration,
        constraints: constraints,
        margin: margin,
        transform: transform,
        transformAlignment: transformAlignment,
        decoration: ShapeDecoration(
          shape: SmoothRectangleBorder(
            side: side,
            borderRadius: borderRadius,
            smoothness: smoothness,
          ),
          color: color,
        ),
      );