WxAnimatedBox.circle constructor

const WxAnimatedBox.circle({
  1. Key? key,
  2. Duration duration = const Duration(milliseconds: 200),
  3. Curve curve = Curves.linear,
  4. double? radius,
  5. BoxConstraints? constraints,
  6. EdgeInsetsGeometry? padding,
  7. EdgeInsetsGeometry? margin,
  8. DecorationImage? image,
  9. List<BoxShadow>? shadows,
  10. Gradient? gradient,
  11. AlignmentGeometry? alignment,
  12. Color? color,
  13. Color? elevationColor,
  14. double? elevation,
  15. Color? borderColor,
  16. double? borderWidth,
  17. BorderStyle? borderStyle,
  18. double? borderOffset,
  19. BorderSide? borderSide,
  20. BorderRadius? borderRadius,
  21. Clip? clipBehavior,
  22. 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;