AnimatedColumn constructor

const AnimatedColumn({
  1. Key? key,
  2. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  3. MainAxisSize mainAxisSize = MainAxisSize.max,
  4. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  5. TextDirection? textDirection,
  6. VerticalDirection verticalDirection = VerticalDirection.down,
  7. TextBaseline? textBaseline,
  8. required List<Widget> children,
  9. Clip clipBehavior = Clip.none,
  10. double spacing = 0.0,
  11. Duration movementDuration = defaultMoveAnimationDuration,
  12. double sensitivity = 5.0,
  13. Duration? insertionDuration = defaultInsertionDuration,
  14. Widget insertionBuilder(
    1. Widget child,
    2. Animation<double> controller
    )?,
  15. Duration? removalDuration = defaultRemovalDuration,
  16. Widget removalBuilder(
    1. Widget child,
    2. Animation<double> controller
    )?,
  17. Duration? staggeredInitialInsertionAnimation,
})

Creates an animated vertical array of children.

The mainAxisAlignment, mainAxisSize, crossAxisAlignment, and verticalDirection arguments must not be null. If crossAxisAlignment is CrossAxisAlignment.baseline, then textBaseline must not be null.

The textDirection argument defaults to the ambient Directionality, if any. If there is no ambient directionality, and a text direction is going to be necessary to determine the layout order (which is always the case unless the column has no children or only one child) or to disambiguate start or end values for the crossAxisAlignment, the textDirection must not be null.

Implementation

const AnimatedColumn({
  super.key,
  super.mainAxisAlignment,
  super.mainAxisSize,
  super.crossAxisAlignment,
  super.textDirection,
  super.verticalDirection,
  super.textBaseline,
  required super.children,
  super.clipBehavior,
  super.spacing,
  super.movementDuration,
  super.sensitivity,
  super.insertionDuration,
  super.insertionBuilder,
  super.removalDuration,
  super.removalBuilder,
  super.staggeredInitialInsertionAnimation,
}) : super(direction: Axis.vertical);