padEnds property

bool padEnds

Whether to add padding to both ends of the list.

If this is set to true and PageController.viewportFraction < 1.0, padding will be added such that the first and last child slivers will be in the center of the viewport when scrolled all the way to the start or end, respectively.

If PageController.viewportFraction >= 1.0, this property has no effect.

This property defaults to true.


final bool padEnds;