tlserver / flutter_map_location_marker

A flutter map plugin for displaying device current location.
https://pub.dev/packages/flutter_map_location_marker
BSD 3-Clause "New" or "Revised" License
98 stars 83 forks source link

null safety #3

Closed barbalex closed 3 years ago

barbalex commented 3 years ago

flutter_map is being upgraded: https://github.com/fleaflet/flutter_map/pull/870.

Dependencies need to be upgraded:

The code needs to be migrated: https://dart.dev/null-safety/migration-guide#step2-migrate.

I tried to fork and do it but got stuck.

danielocampo2 commented 3 years ago

@barbalex I was coming here to report the same thing, but I see something strange regarding this plugin's versions. Master's latest version is 0.0.5 and it's been updated Nov 2020, while in pub.dev latest version is from April (0.0.8): https://pub.dev/packages/flutter_map_location_marker/versions

tlserver commented 3 years ago

Yes, I also receive a PR for this 8 hours ago. Also, I found around 3 forks already migrated to null-safety.

tlserver commented 3 years ago

Null-safety version is ready on github now.

Null-safety flutter_map is currently available on github only and pub.dev do not accept git source dependency, so I am not able to publish to pub.dev now. Please use git source in your project for current state if needed.

In pubspec.yaml:

dependencies:
  flutter_map_location_marker:
    git:
      url: https://github.com/tlserver/flutter_map_location_marker
      ref: null-safety
barbalex commented 3 years ago

@tlserver thanks a lot. Works for me. Great tool!

andreandersson commented 3 years ago

@tlserver flutter_map now has null-safety in version 0.13.1.

tlserver commented 3 years ago

@andreandersson thanks. I have updated the dependency and published to pub.dev.