padEnds property

bool padEnds
final

Whether to add padding to both ends of the list.

If this is set to true and 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. You may want to set this to false if this ExtendedSliverFillViewport is not the only widget along this main axis, such as in a CustomScrollView with multiple children.

This option cannot be null. If viewportFraction >= 1.0, this option has no effect. Defaults to true.

Implementation

final bool padEnds;