#73143

Relevant PRs:

Deprecated in #79160

Removed in #111713

ScrollBehavior.buildViewportChrome

Supported by Flutter Fix: yes

The method ScrollBehavior.buildViewportChrome was deprecated in v2.1.

This method was used by the Scrollable widget to apply an overscroll
indicator, like GlowingOverscrollIndicator, by default on the appropriate
platforms. As more default decorators have been added, like Scrollbars, each
has instead been split into individual methods to replace buildViewportChrome.

This allows extending classes to only override the specific decorator, through
buildScrollbar or buildOverscrollIndicator, rather than needing to rewrite
code in order to maintain one or the other.

Migration guide

In-depth migration guide available

Code before migration: