SmoothContainer constructor
SmoothContainer({
- Key? key,
- double smoothness = 1,
- BorderRadiusGeometry borderRadius = BorderRadius.zero,
- BorderSide 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,
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,
),
);