WContainer constructor
const
WContainer({
- Key? key,
- Widget? child,
- String? className,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- List<
BoxShadow> ? boxShadow, - Border? border,
- AlignmentGeometry? alignment,
- Clip clipBehavior = Clip.none,
- BoxConstraints? constraints,
- Matrix4? transform,
- AlignmentGeometry? transformAlignment,
- Decoration? foregroundDecoration,
- Decoration? decoration,
Creates a Wind-styled container.
The className
parameter allows you to specify TailwindCSS-like utility
classes for styling. Other parameters can be used to override specific
styling properties.
Implementation
const WContainer({
super.key,
this.child,
this.className,
this.width,
this.height,
this.padding,
this.margin,
this.backgroundColor,
this.borderRadius,
this.boxShadow,
this.border,
this.alignment,
this.clipBehavior = Clip.none,
this.constraints,
this.transform,
this.transformAlignment,
this.foregroundDecoration,
this.decoration,
});