Skip to content
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

Flutter v2 updates #55

Closed
wants to merge 2 commits into from
Closed

Conversation

tverra
Copy link
Contributor

@tverra tverra commented Mar 5, 2021

I'm trying to migrate my apps to nullsafety since Flutter 2.0 is in the stable channel now. This package depends on shared_preferences 0.5.x, which prevents me from upgrading to version 2.0.x. The new version has a breaking change; "Setters no longer accept null to mean removing values. If you were previously using set*(key, null) for removing, use remove(key) instead.". Since this package doesn't remove values by passing null to a setter, it should be safe to upgrade. https://pub.dev/packages/shared_preferences/changelog

It's probably a good idea to make this a major version upgrade, to maintain compatability with projects that doesn't use shared_preferences 2.0.x. This woluld also open the possibility of adding other null-safety related upgrades down the line.

I also took the libery of fixing some deprecation warnings.

@tverra
Copy link
Contributor Author

tverra commented May 10, 2021

I'll close this, since it has been solved by #56.

@tverra tverra closed this May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant