fix: Possibly fix touchscreen scrolling on Linux phones
Unfortunately I can not test this by myself.
This commit is contained in:
parent
37d127d8bc
commit
94f3d521e5
2 changed files with 12 additions and 0 deletions
10
lib/utils/custom_scroll_behaviour.dart
Normal file
10
lib/utils/custom_scroll_behaviour.dart
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CustomScrollBehavior extends MaterialScrollBehavior {
|
||||
@override
|
||||
Set<PointerDeviceKind> get dragDevices => {
|
||||
PointerDeviceKind.touch,
|
||||
PointerDeviceKind.mouse,
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue