WxBox.circle constructor
const
WxBox.circle({
- Key? key,
- double? radius,
- 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 circle shape
Implementation
const WxBox.circle({
super.key,
double? radius,
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 CircleBorder(),
width = radius != null ? radius * 2 : null,
height = radius != null ? radius * 2 : null;