scaleFactor property Null safety

double scaleFactor

Determines the amount of scale to be performed per pointer scroll.

Defaults to 200.0, which was arbitrarily chosen to feel natural for most trackpads and mousewheels on all supported platforms.

Increasing this value above the default causes scaling to feel slower, while decreasing it causes scaling to feel faster.

The amount of scale is calculated as the exponential function of the PointerScrollEvent.scrollDelta to scaleFactor ratio. In the Flutter engine, the mousewheel PointerScrollEvent.scrollDelta is hardcoded to 20 per scroll, while a trackpad scroll can be any amount.

Affects only pointer device scrolling, not pinch to zoom.


final double scaleFactor;