build static method
Widget
build({
- Widget? child,
- List<
BoxShadow> ? boxShadow, - Color? color,
- EdgeInsets? padding,
- EdgeInsets? margin,
- BorderRadiusGeometry? borderRadius,
- double? width,
- double? height,
- Matrix4? transform,
- Gradient? gradient,
- DecorationImage? image,
- BoxBorder? border,
- BoxConstraints? constraints,
- BlendMode? backgroundBlendMode,
- Clip clipBehavior = Clip.hardEdge,
- BoxShape shape = BoxShape.rectangle,
Implementation
static Widget build({
Widget? child,
List<BoxShadow>? boxShadow,
Color? color,
EdgeInsets? padding,
EdgeInsets? margin,
BorderRadiusGeometry? borderRadius,
double? width,
double? height,
Matrix4? transform,
Gradient? gradient,
DecorationImage? image,
BoxBorder? border,
BoxConstraints? constraints,
BlendMode? backgroundBlendMode,
Clip clipBehavior = Clip.hardEdge,
BoxShape shape = BoxShape.rectangle
}) {
return Container (
width: width,
height: height,
margin: margin,
padding: padding,
transform: transform,
constraints: constraints,
clipBehavior: clipBehavior,
decoration: BoxDecoration(
boxShadow: boxShadow,
borderRadius: shape == BoxShape.circle ? null : borderRadius,
color: color,
gradient: gradient,
image: image,
border: border,
backgroundBlendMode: backgroundBlendMode,
shape: shape
),
child: child,
);
}