Your scrollable widgets then inherit and reflect this behavior.

Instead of creating your own ScrollBehavior, another option for changing
the default behavior is to copy the existing ScrollBehavior, and set different
dragDevices.

    
      Create a ScrollConfiguration in your widget tree, and provide a modified copy
of the existing ScrollBehavior in the current context using copyWith.

Migration guide

Setting a custom ScrollBehavior for your application

Code before migration:

MaterialApp

// ...

);

Code after migration:

class

MyCustomScrollBehavior

extends

MaterialScrollBehavior

// Override behavior methods and getters like dragDevices

@override

Set

PointerDeviceKind

get

dragDevices

PointerDeviceKind

touch