New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to null safety #829
Comments
There are few blockers flutter_image is deprecated and no longer maintained under Flutter org. |
For latlong here is active pull request |
in order for migrating to Flutter 2.0 we will need this library to be null safe. This is a one of a kind package which lets Flutter community to use their beloved widgets as markers. @johnpryan do you have any strategy for this? @AyushBherwani1998 thanks for listing the deprecated dependencies. It might be a good starting point before nnbd migration. I think flutter_image and latlong are not going to be hard to replace. I don't know what proj4dart is for and if there is a replacement for positioned_tap_detector. |
For "latlong". nb: I didn't check the code https://github.com/xclud/flutter_latlng. |
|
It looks like |
logging has been updated to null-safety |
I think this repo is archived and I'm gonna fork and publish NS version of flutter_map. |
@arsamme thanks. But I do hope it is not the case for flutter_map. I see the owner @johnpryan active from time to time. I would love to hear his opinion about the future of this great package |
@aytunch I hope too. But he didn't respond to any issue for a long time. |
@arsamme @aytunch there's a call for maintainers on the top of the issues list on this repo. I assume someone else has to join as an active maintainer so that the package get's timel yupdates. Is there another package available out there or downgrading to pre-null-safety version is one of the ways you manage the production-ready apps ? |
@o1dnik I have missed the call for maintainers issue, thanks for pointing it out. I have been using this library from the very early days. And lately @maRci002 and @lpongetti have done very useful and successful contributions among other developers. As now understanding that @johnpryan is busy with other stuff, I would like to know from you two friends if you have an agenda on this libraries null safety upgrade, maintenance and new features? Thanks. Lastly, I would like to remind to the developers and marketers of several Map provider companies which are supported by this package that if this package is not maintained anymore, we would most likely change to another provider which offer similar functionality using their official packages. So it would be great to get some help from your side too:) |
@aytunch I've submitted call for maintainers form and no answers yet (after about two weeks) |
I am going to migrate proj4dart to nullsafety including mgrs_dart / wkt_parser packages. |
Great to hear from you @maRci002 I am just gathering the info scattered throughout this issue so we know where we are in terms of Null Safety status of Flutter_map's dependencies. Thanks everyone who shared info here (I haven't checked the packages, just collected the info in the issue so if there are new updates, please copy paste the table and reply accordingly):
|
lists is migrated |
Hi all, Thanks for all your hard efforts, I really appreciate it, even though I am still in full time education, I program/code as much as possible in my spare time :). Edit PS. I just feel that if you're going to this much effort, we might as well do it as good as possible the first time :). |
@JaffaKetchup Unfortunately author of package is nit responding and I think there is no way for merging PRs. In my opinion best solution for now is forking this repo and publishing migrated package, then adding other features. |
@arsamme Yeah, sorry should have clarified. I meant after creating the new GitHub repo but before publishing on pub.dev. |
@JaffaKetchup Great. So I'll notify you here on updates. |
Great, awaiting for updates. |
I have added some additional maintainers to help with maintenance. |
@johnpryan nice. Is there any eta on when we will get nnbd version? |
@arsamme no, we need to wait for other packages to upgrade first. |
@johnpryan / @maRci002 - what do you think of replacing lat_long with maps_toolkit, ref #750? The change looks simple enough, so does the new dependency. The question is do we need a dependency for modelling LatLng when there is no commonly used library for LatLng in dart/flutter community that is actively maintained afaics? |
Using the dependency override, I get the following build error:
Do you have the same result? |
@bramvbilsen I think flutter_map isn't the problem here. There is a problem with gradle. Open the /android directory with e.g. Android Studio and try to build gradle there. |
This unfortunately does not work yet, as flutter_image is not null safe yet:
I guess it will start working after flutter_image got updated 🙏 |
@barbalex Have a look into the provided link in the error message. Option 2 (if you don't want to run you're app with unsound null safety): dependency_overrides:
flutter_map:
git:
url: git://github.com/josxha/flutter_map.git
ref: issues/829-nullsafety |
|
@aytunch Unfortunately not quite, flutter_image has been merged and moved to a new repository, but the version has not been released on pub.dev yet. However, I would like to point out my PR replacing flutter_image with http. This would make all packages with support for sound null safety. See: #894 |
@aytunch http is going to be a more robust solution. I made some noise in a new issue about releasing a new version but sometimes @johnpryan and the new maintainers are a bit slow on the catch-up to PRs. My guess is that null-safety and the http merge will be in the next week. I just checked the master branch and all other dependencies are null safe so there are no more blockers (assuming we remove flutter_image) |
See my comment on #894. I think we should wait for flutter_image 4.0.1, which is now part of flutter packages. The branch 829-nullsafety is now pointing to the new location in flutter packages. When flutter_image 4.0.1 is published to pub.dev, I will merge it to master as soon at a contributor approves it (we can not merge our own PRs), and ask @johnpryan to release 0.13.0. |
This is great news, and I'm glad to see some progress 👍 . Should the new release be 1.0.0 (or 2.0.0) however? This is because this is a potentially breaking change with huge code refactoring, and it kind of seems time for a major release. |
Caching should not be handled by the image provider like that. Check my post in #984 for info. @JaffaKetchup it would likely be version 1.0.0. Any increase of the first number is indicating a significant breaking change. |
FWIW I opened an issue to ask for flutter_image to be published: flutter/flutter#82900 |
And flutter_image v4.0.1 was published: flutter/flutter#82900 (comment) |
I'll update the branch tonight @barbalex @johnpryan We are ready to merge shortly. Can you do the review soon? |
…sues/829-nullsafety
flutter_image is now upgraded to latest version 4.0.1 in PR #870 |
…sues/829-nullsafety
…sues/829-nullsafety
…sues/829-nullsafety
Hi, are we ready for this? Hoping to get this done today or tomorrow so I can update my plugin 👍. |
…sues/829-nullsafety
Still looking forward for Null Safety solution :) |
One of our side project uses this library, would be happy to help to migrate to null safety @johnpryan
The text was updated successfully, but these errors were encountered: