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

Migrate to null safety #68

Merged
merged 4 commits into from Apr 3, 2021
Merged

Conversation

nilsreichardt
Copy link
Contributor

@nilsreichardt nilsreichardt commented Mar 6, 2021

Description

I propose this pull request to migrate this plugin to null safety as it is the way to go now that Flutter 2 has been released.

Here are the changes I introduced:

  • Update SDK dependency version to 2.12.0+
  • Run dart migrate on existing code to remove unsafe nulls (for the package & example)
  • Changed FlatButton to TextButton and RaisedButton to ElevationButton
  • Add a new version (0.14.0) to the changelog

Please check everything twice!

Testing

  • All existing Tests are passing
  • Tested it manually on a Android emulator

Demo:

Screen.Recording.2021-03-06.at.01.10.14.mov

Related tickets

Closes #67

@blaueeiner
Copy link

Hi. You should maybe support compatibility with provider: 5.0.0-nullsafety.5 because flutter_bloc currently does not support 5.0.0 yet and it causes versioning issues.

@nilsreichardt
Copy link
Contributor Author

Hi @blaueeiner! As you can see in felangel/bloc#2202 flutter_bloc will be updated today / tomorrow and after this there should be no versioning conflicts.

@luckyhandler
Copy link

nice work!

@sangTroo
Copy link

sangTroo commented Mar 8, 2021

Hi,
Thanks for the great work
When This new version will be available on pub.dev?

@JaffaKetchup
Copy link

Hi, any news on this?

@nilsreichardt
Copy link
Contributor Author

As long as the PR has not been merged, you can use this in your pubspec.yaml:

feature_discovery:
  git:
    url: https://github.com/nilsreichardt/feature_discovery
    ref: migrate-null-safety

@JaffaKetchup
Copy link

Hi @nilsreichardt.
Thanks for the tip, however I'm already using it like that. I just don't like having packages from git in my code if I can help it. :)

@nilsreichardt
Copy link
Contributor Author

@JaffaKetchup Yes, I understand this. If I delete the migrate-null-safety branch / my repo / rename my GitHub username, etc., your code would break 😬

@nosmirck
Copy link

any news on when will this be merged?

@JaffaKetchup
Copy link

Hi,
Any news on this?
Thanks.

@jagomf
Copy link

jagomf commented Mar 27, 2021

@ayalma, the owner of this repo, has not given any proof of life since last commit on January. His website, as reported by his bio, is also offline.

It is not a good idea to rely on a package that cannot be maintained. The best option would probably be for anyone that can maintain this to publish the package.

@nilsreichardt would you be willing to publish and maintain this package maybe?

@nilsreichardt
Copy link
Contributor Author

@jagomf I'm sorry, but I don't have to maintain this package 😖 Maybe @fluttercommunity can do this?

@ayalma
Copy link
Owner

ayalma commented Mar 27, 2021 via email

@nosmirck
Copy link

I'm in nowruz holiday , and cuz of that I can't do anything for that

@ayalma so maybe by April 12 we'll have this merged?

@ayalma
Copy link
Owner

ayalma commented Mar 29, 2021 via email

@ayalma ayalma merged commit 7508c59 into ayalma:master Apr 3, 2021
@ayalma
Copy link
Owner

ayalma commented Apr 3, 2021

@nilsreichardt @blaueeiner @JaffaKetchup @luckyhandler @sangTroo published to pubspec.

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.

Migrate to null safety
8 participants