WxBox.rectangle constructor
const
WxBox.rectangle({
- Key? key,
- double? width,
- double? height,
- BoxConstraints? constraints,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- DecorationImage? image,
- List<
BoxShadow> ? shadows, - Gradient? gradient,
- Color? color,
- Color? borderColor,
- double? borderWidth,
- BorderStyle? borderStyle,
- double? borderOffset,
- BorderSide? borderSide,
- BorderRadius? borderRadius,
- Clip? clipBehavior,
- Color? elevationColor,
- double? elevation,
- Widget? child,
Create a box widget with rectangle shape
Implementation
const WxBox.rectangle({
super.key,
this.width,
this.height,
this.constraints,
this.alignment,
this.padding,
this.margin,
this.image,
this.shadows,
this.gradient,
this.color,
this.borderColor,
this.borderWidth,
this.borderStyle,
this.borderOffset,
this.borderSide,
this.borderRadius,
this.clipBehavior,
this.elevationColor,
this.elevation,
this.child,
}) : border = const RoundedRectangleBorder();