pikapika/lib/screens/components/MouseAndTouchScrollBehavior...

13 lines
317 B
Dart
Raw Normal View History

2022-01-18 06:01:01 +00:00
import 'dart:ui';
import 'package:flutter/material.dart';
final mouseAndTouchScrollBehavior = MouseAndTouchScrollBehavior();
class MouseAndTouchScrollBehavior extends MaterialScrollBehavior {
@override
Set<PointerDeviceKind> get dragDevices => {
PointerDeviceKind.touch,
PointerDeviceKind.mouse,
};
}