alignPanAxis property Null safety

bool alignPanAxis

If true, panning is only allowed in the direction of the horizontal axis or the vertical axis.

In other words, when this is true, diagonal panning is not allowed. A single gesture begun along one axis cannot also cause panning along the other axis without stopping and beginning a new gesture. This is a common pattern in tables where data is displayed in columns and rows.

See also:

  • constrained, which has an example of creating a table that uses alignPanAxis.


final bool alignPanAxis;