Skip to content

Commit

Permalink
fix(map): remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTexanCodeur committed Apr 30, 2024
1 parent c82a3a2 commit 5e6cf4d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/viewmodels/map_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class MapViewModel extends AsyncNotifier<MapInfo> {
}

Future<void> animateCamera(LatLng target) async {
//avoid .future getter on a completed future
final controller = await _mapController.future;
controller.animateCamera(
CameraUpdate.newCameraPosition(
Expand Down
1 change: 0 additions & 1 deletion lib/views/home_content/map/post_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import "package:google_maps_flutter/google_maps_flutter.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/models/ui/map_info.dart";
import "package:proxima/services/geolocation_service.dart";
import "package:proxima/viewmodels/home_view_model.dart";
import "package:proxima/viewmodels/map_view_model.dart";

class PostMap extends ConsumerWidget {
Expand Down

0 comments on commit 5e6cf4d

Please sign in to comment.