mirror of
https://github.com/flutter/samples.git
synced 2026-03-22 04:17:50 +00:00
Clean up dependencies across packages (#2585)
Drop dep on pkg:collection, use new bits in Dart 3.0 Fixed very old dep in navigation_and_routing – bug was fixed long ago
This commit is contained in:
3
place_tracker/.gitignore
vendored
3
place_tracker/.gitignore
vendored
@@ -69,6 +69,3 @@
|
||||
!**/ios/**/default.pbxuser
|
||||
!**/ios/**/default.perspectivev3
|
||||
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
||||
|
||||
# Flutter Web files
|
||||
lib/generated_plugin_registrant.dart
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
import 'dart:async';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
@@ -279,9 +278,8 @@ class _PlaceMapState extends State<PlaceMap> {
|
||||
// At this point, we know the places have been updated from the list
|
||||
// view. We need to reconfigure the map to respect the updates.
|
||||
for (final place in newConfiguration.places) {
|
||||
final oldPlace = _configuration!.places.firstWhereOrNull(
|
||||
(p) => p.id == place.id,
|
||||
);
|
||||
final oldPlace =
|
||||
_configuration!.places.where((p) => p.id == place.id).firstOrNull;
|
||||
if (oldPlace == null || oldPlace != place) {
|
||||
// New place or updated place.
|
||||
_updateExistingPlaceMarker(place: place);
|
||||
|
||||
@@ -15,7 +15,6 @@ dependencies:
|
||||
provider: ^6.0.2
|
||||
uuid: ^4.0.0
|
||||
go_router: ">=10.0.0 <15.0.0"
|
||||
collection: ^1.16.0
|
||||
|
||||
dev_dependencies:
|
||||
analysis_defaults:
|
||||
|
||||
Reference in New Issue
Block a user