WxAnimatedBox.circle constructor
const
WxAnimatedBox.circle({
- Key? key,
- Duration duration = const Duration(milliseconds: 200),
- Curve curve = Curves.linear,
- double? radius,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- DecorationImage? image,
- List<
BoxShadow> ? shadows, - Gradient? gradient,
- AlignmentGeometry? alignment,
- Color? color,
- Color? elevationColor,
- double? elevation,
- Color? borderColor,
- double? borderWidth,
- BorderStyle? borderStyle,
- double? borderOffset,
- BorderSide? borderSide,
- BorderRadius? borderRadius,
- Clip? clipBehavior,
- required Widget? child,
Create an animated box widget with circle shape
Implementation
const WxAnimatedBox.circle({
super.key,
super.duration = const Duration(milliseconds: 200),
super.curve,
double? radius,
this.constraints,
this.padding,
this.margin,
this.image,
this.shadows,
this.gradient,
this.alignment,
this.color,
this.elevationColor,
this.elevation,
this.borderColor,
this.borderWidth,
this.borderStyle,
this.borderOffset,
this.borderSide,
this.borderRadius,
this.clipBehavior,
required this.child,
}) : border = const CircleBorder(),
width = radius != null ? radius * 2 : null,
height = radius != null ? radius * 2 : null;