save before flutter upgrade
This commit is contained in:
12
lib/helpers/scroll_behavior.dart
Normal file
12
lib/helpers/scroll_behavior.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
// Create Custom Scroll Class for web Drap Behaviour:
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class MyCustomScrollBehavior extends MaterialScrollBehavior {
|
||||
// Override behavior methods and getters like dragDevices
|
||||
@override
|
||||
Set<PointerDeviceKind> get dragDevices => {
|
||||
PointerDeviceKind.touch,
|
||||
PointerDeviceKind.mouse,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user