WxAnimatedBox.rectangle constructor
const
WxAnimatedBox.rectangle({
- Key? key,
- Duration duration = const Duration(milliseconds: 200),
- Curve curve = Curves.linear,
- double? width,
- double? height,
- 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 rectangle shape
Implementation
const WxAnimatedBox.rectangle({
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 RoundedRectangleBorder();