shrinkExtent property

double shrinkExtent
final

The minimum allowable extent (size) in the main axis for carousel items during scrolling transitions.

As the carousel scrolls, the first visible item is pinned and gradually shrinks until it reaches this minimum extent before scrolling off-screen. Similarly, the last visible item enters the viewport at this minimum size and expands to its full itemExtent.

In cases where the remaining viewport space for the last visible item is larger than the defined shrinkExtent, the shrinkExtent is dynamically adjusted to match this remaining space, ensuring a smooth size transition.

Defaults to 0.0. Setting to 0.0 allows items to shrink/expand completely, transitioning between 0.0 and the full itemExtent. In cases where the remaining viewport space for the last visible item is larger than the defined shrinkExtent, the shrinkExtent is dynamically adjusted to match this remaining space, ensuring a smooth size transition.

Implementation

final double shrinkExtent;