Skip to content

Commit

Permalink
Removed duplicate 'dart:math' import
Browse files Browse the repository at this point in the history
  • Loading branch information
JaffaKetchup committed Nov 19, 2024
1 parent 1ecb940 commit 805f882
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/src/gestures/map_interactive_viewer.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:async';
import 'dart:math' as math;
import 'dart:math';

import 'package:flutter/gestures.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -395,16 +394,16 @@ class MapInteractiveViewerState extends State<MapInteractiveViewer>
switch (key) {
PhysicalKeyboardKey.arrowLeft ||
PhysicalKeyboardKey.keyA =>
Point(-panSpeed, 0),
math.Point(-panSpeed, 0),
PhysicalKeyboardKey.arrowRight ||
PhysicalKeyboardKey.keyD =>
Point(panSpeed, 0),
math.Point(panSpeed, 0),
PhysicalKeyboardKey.arrowUp ||
PhysicalKeyboardKey.keyW =>
Point(0, -panSpeed),
math.Point(0, -panSpeed),
PhysicalKeyboardKey.arrowDown ||
PhysicalKeyboardKey.keyS =>
Point(0, panSpeed),
math.Point(0, panSpeed),
_ => throw StateError(
'`_keyboardPanKeyDownSet` should only contain arrow & WASD keys',
),
Expand Down

0 comments on commit 805f882

Please sign in to comment.