WxAnimatedBox.stadium constructor

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

Create an animated box widget with stadium shape

Implementation

const WxAnimatedBox.stadium({
  super.key,
  super.duration = const Duration(milliseconds: 200),
  super.curve,
  this.width,
  this.height,
  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 StadiumBorder();