lpongetti / flutter_map_marker_cluster

Provides beautiful animated marker clustering functionality for flutter_map. Inspired by Leaflet.markercluster
BSD 3-Clause "New" or "Revised" License
243 stars 215 forks source link

Trying to add flutter_map_marker_cluster results in a dependency mess #185

Closed Blacksheep70 closed 8 months ago

Blacksheep70 commented 8 months ago

Hi,

I'm trying to add flutter_map_marker_cluster

D:\Documents\Coding\BB\bb>flutter pub add flutter_map_marker_cluster:any
The current Dart SDK version is 3.1.3.

Because flutter_map_marker_cluster <0.4.0-nullsafety.0 doesn't support null safety and flutter_map_marker_cluster
  ^0.4.0-nullsafety.0 depends on latlong2 ^0.8.0, flutter_map_marker_cluster <0.5.0 requires latlong2 ^0.8.0.
And because flutter_map_marker_cluster >=0.5.0 <1.2.0 depends on latlong2 ^0.8.1, flutter_map_marker_cluster <1.2.0
  requires latlong2 ^0.8.0.
And because flutter_map_marker_cluster >=1.2.0 depends on flutter_map ^5.0.0 and bb depends on flutter_map
  ^6.0.0, every version of flutter_map_marker_cluster requires latlong2 ^0.8.0.
So, because bb depends on both latlong2 ^0.9.0 and flutter_map_marker_cluster any, version solving failed.

The lower bound of "sdk: '>=2.1.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety

However, this seems actually to be unresolveable. All packages are up to date as of today.

Blacksheep70 commented 8 months ago
D:\Documents\Coding\BikerBuddy\bikerbuddy>flutter pub upgrade
Resolving dependencies...
  async 2.11.0
  boolean_selector 2.1.1
  characters 1.3.0
  clock 1.1.1
  collection 1.17.2 (1.18.0 available)
  cupertino_icons 1.0.6
  fake_async 1.3.1
  flutter 0.0.0 from sdk flutter
  flutter_lints 2.0.3
  flutter_map 6.0.0
  flutter_test 0.0.0 from sdk flutter
  http 1.1.0
  http_parser 4.0.2
  intl 0.18.1
  latlong2 0.9.0
  lints 2.1.1
  lists 1.0.1
  logger 2.0.2+1
  matcher 0.12.16
  material_color_utilities 0.5.0 (0.8.0 available)
  meta 1.9.1 (1.10.0 available)
  mgrs_dart 2.0.0
  path 1.8.3
  polylabel 1.0.1
  proj4dart 2.1.0
  sky_engine 0.0.99 from sdk flutter
  source_span 1.10.0
  stack_trace 1.11.0 (1.11.1 available)
  stream_channel 2.1.1 (2.1.2 available)
  string_scanner 1.2.0
  term_glyph 1.2.1
  test_api 0.6.0 (0.6.1 available)
  typed_data 1.3.2
  unicode 0.3.1
  vector_math 2.1.4
  web 0.1.4-beta (0.2.2-beta available)
  wkt_parser 2.0.0
No dependencies changed.
7 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.

D:\Documents\Coding\BikerBuddy\bikerbuddy>flutter pub outdated
Showing outdated packages.
[*] indicates versions that are not the latest available.

Package Name  Current  Upgradable  Resolvable  Latest

direct dependencies: all up-to-date.

dev_dependencies: all up-to-date.
all dependencies are up-to-date.