Skip to content

Commit

Permalink
forgot to add the dart:io Package in b27b17f commit 😅
Browse files Browse the repository at this point in the history
  • Loading branch information
yahu1031 authored Sep 15, 2020
1 parent b27b17f commit da6d525
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/src/bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

import 'dart:async';

import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
Expand Down Expand Up @@ -307,10 +307,9 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
? PointerDeviceKind.touch
: // PCs or desktops or Laptops devices has mouse pointers
(Platform.isLinux || Platform.isWindows || Platform.isMacOS)
? VelocityTracker(PointerDeviceKind.mouse)
? PointerDeviceKind.mouse
: // Some unknown devices
VelocityTracker(PointerDeviceKind.unknown),
);
PointerDeviceKind.unknown);
_startTime = DateTime.now();
}
DragUpdateDetails dragDetails;
Expand Down

0 comments on commit da6d525

Please sign in to comment.