renderChildrenOutsideViewport property

bool renderChildrenOutsideViewport

Whether to paint children inside the viewport only.

If false, every child will be painted. However the Scrollable is still the size of the viewport and detects gestures inside only.

Defaults to false. Cannot be true if clipBehavior is not Clip.none since children outside the viewport will be clipped, and therefore cannot render children outside the viewport.

Implementation

bool get renderChildrenOutsideViewport => _renderChildrenOutsideViewport;
void renderChildrenOutsideViewport=(bool value)

Implementation

set renderChildrenOutsideViewport(bool value) {
  assert(
    !renderChildrenOutsideViewport || clipBehavior == Clip.none,
    clipBehaviorAndRenderChildrenOutsideViewportConflict,
  );
  if (value == _renderChildrenOutsideViewport) {
    return;
  }
  _renderChildrenOutsideViewport = value;
  markNeedsLayout();
  markNeedsSemanticsUpdate();
}