Jaime Blasco

Improve comments

@@ -299,7 +299,6 @@ class _ModalBottomSheetState extends State<ModalBottomSheet> @@ -299,7 +299,6 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
299 299
300 // Otherwise the calculate the velocity with a VelocityTracker 300 // Otherwise the calculate the velocity with a VelocityTracker
301 if (_velocityTracker == null) { 301 if (_velocityTracker == null) {
302 - // Checking the device type as per the OS installed in it  
303 final pointerKind = defaultPointerDeviceKind(context); 302 final pointerKind = defaultPointerDeviceKind(context);
304 _velocityTracker = VelocityTracker(pointerKind); 303 _velocityTracker = VelocityTracker(pointerKind);
305 _startTime = DateTime.now(); 304 _startTime = DateTime.now();
@@ -467,7 +466,9 @@ class _CustomBottomSheetLayout extends SingleChildLayoutDelegate { @@ -467,7 +466,9 @@ class _CustomBottomSheetLayout extends SingleChildLayoutDelegate {
467 } 466 }
468 } 467 }
469 468
470 -// Used by VelocityTracker 469 +// Checks the device input type as per the OS installed in it
  470 +// Mobile platforms will be default to `touch` while desktop will do to `mouse`
  471 +// Used with VelocityTracker
471 // https://github.com/flutter/flutter/pull/64267#issuecomment-694196304 472 // https://github.com/flutter/flutter/pull/64267#issuecomment-694196304
472 PointerDeviceKind defaultPointerDeviceKind(BuildContext context) { 473 PointerDeviceKind defaultPointerDeviceKind(BuildContext context) {
473 final platform = Theme.of(context)?.platform ?? defaultTargetPlatform; 474 final platform = Theme.of(context)?.platform ?? defaultTargetPlatform;