controller:

controller

child:

child

);

Setting a custom ScrollBehavior for your application

Code before migration:

// MaterialApps previously had a private ScrollBehavior.

MaterialApp

// ...

);

Code after migration:

// MaterialApps previously had a private ScrollBehavior.

// This is available to extend now.

class

MyCustomScrollBehavior

extends

MaterialScrollBehavior

// Override behavior methods like buildOverscrollIndicator and buildScrollbar

// ScrollBehavior can now be configured for an entire application.

MaterialApp

scrollBehavior:

MyCustomScrollBehavior

(),

// ...

);

Setting a custom ScrollBehavior for a specific widget