WContainer constructor

const WContainer({
  1. Key? key,
  2. Widget? child,
  3. String? className,
  4. double? width,
  5. double? height,
  6. EdgeInsetsGeometry? padding,
  7. EdgeInsetsGeometry? margin,
  8. Color? backgroundColor,
  9. BorderRadius? borderRadius,
  10. List<BoxShadow>? boxShadow,
  11. Border? border,
  12. AlignmentGeometry? alignment,
  13. Clip clipBehavior = Clip.none,
  14. BoxConstraints? constraints,
  15. Matrix4? transform,
  16. AlignmentGeometry? transformAlignment,
  17. Decoration? foregroundDecoration,
  18. 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,
});