AnimatedContainerModifier constructor

const AnimatedContainerModifier({
  1. Key? key,
  2. Widget? child,
  3. Curve curve = Curves.linear,
  4. required Duration duration,
  5. VoidCallback? onEnd,
  6. Key? modifierKey,
  7. AlignmentGeometry? alignment,
  8. EdgeInsetsGeometry? padding,
  9. Color? color,
  10. Decoration? decoration,
  11. Decoration? foregroundDecoration,
  12. double? width,
  13. double? height,
  14. BoxConstraints? constraints,
  15. EdgeInsetsGeometry? margin,
  16. Matrix4? transform,
  17. AlignmentGeometry? transformAlignment,
  18. Clip clipBehavior = Clip.none,
})

Creates a container that animates its parameters implicitly.

The curve and duration arguments must not be null.

Implementation

const AnimatedContainerModifier({
  super.key,
  super.child,
  super.curve,
  required super.duration,
  super.onEnd,
  super.modifierKey,
  this.alignment,
  this.padding,
  this.color,
  this.decoration,
  this.foregroundDecoration,
  this.width,
  this.height,
  this.constraints,
  this.margin,
  this.transform,
  this.transformAlignment,
  this.clipBehavior = Clip.none,
});