physics property Null safety

ScrollPhysics? physics

How the page view should respond to user input.

For example, determines how the page view continues to animate after the user stops dragging the page view.

The physics are modified to snap to page boundaries using PageScrollPhysics prior to being used.

If an explicit ScrollBehavior is provided to scrollBehavior, the ScrollPhysics provided by that behavior will take precedence after physics.

Defaults to matching platform conventions.


final ScrollPhysics? physics;