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 nnbd #44

Merged
merged 9 commits into from
Mar 13, 2021
Merged

migrate to nnbd #44

merged 9 commits into from
Mar 13, 2021

Conversation

miDeb
Copy link
Contributor

@miDeb miDeb commented Jan 30, 2021

This migrates flutter_badges to null safety. You could release a pre-release version with this change to pub.dev.

@craiglabenz
Copy link

Any plans to move forward with this soon, @yadaniyil?

@bananagag bananagag mentioned this pull request Feb 26, 2021
@RusKryzhanovskiy
Copy link

Hi, @miDeb We plan to do it next week.

@miDeb
Copy link
Contributor Author

miDeb commented Feb 26, 2021

Thanks @RusKryzhanovskiy, very cool! I have just changed the version in pubspec.yaml to a stable one, as that is now recommended. I'll leave adding a changelog entry to you :)

@fzyzcjy
Copy link

fzyzcjy commented Mar 4, 2021

Hi looking forward to this update! Since flutter has make null safety stable today!

@kuromukira
Copy link

👀

@miDeb
Copy link
Contributor Author

miDeb commented Mar 6, 2021

I resolved the conflicts, this is ready to be reviewed.

lib/src/badge_position.dart Outdated Show resolved Hide resolved
lib/src/badge_positioned.dart Outdated Show resolved Hide resolved
pubspec.yaml Outdated Show resolved Hide resolved
@@ -21,25 +21,25 @@ class BadgePosition {

/// Factory method that creates a new instance of this widget
/// according to [top] and [start]
factory BadgePosition.topStart({double? top, double? start}) {
return BadgePosition(top: top ?? -5, start: start ?? -10);
factory BadgePosition.topStart({double top = -5, double start = -10}) {
Copy link
Contributor Author

@miDeb miDeb Mar 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional that top has a default value of -5? It looks like all other defaults for top and bottom are -8.

@ananthpranav
Copy link

Can someone merge it soon please?

@DevNico
Copy link

DevNico commented Mar 10, 2021

Would be great to have a null safe version / this PR merged ASAP!

@nipunasudha
Copy link

Could you please merge this PR?

@felixgabler
Copy link

Hi, i don't want to press too much but this is one of the last packages blocking me from migrating to Flutter 2 with null safety myself. The PR looks pretty good. Could you maybe at least publish it as a preview version? Thanks!

@craiglabenz
Copy link

craiglabenz commented Mar 13, 2021 via email

@felixgabler
Copy link

It's not listed on the pub.dev page for me. I'll try it in my code later and let you know if that works! Thanks tho!

@miDeb
Copy link
Contributor Author

miDeb commented Mar 13, 2021

It should be available at 0.0.3-nullsafety.0.

I'm confused. Are you sure we're talking about the right package? The latest non-nullsafe version is 1.2.0 and I'm proposing in this PR to use 2.0.0 for the null safe version.

@yadaniyil
Copy link
Collaborator

Guys, I'll merge the PR and deploy the package as prerelease in 10 minutes. Sorry for being so slow :)
@miDeb thank you so much :)

@yadaniyil yadaniyil merged commit 097f50f into yako-dev:master Mar 13, 2021
@yadaniyil
Copy link
Collaborator

Hi everyone! The package is prereleased. Please let me know if everything works as expected.
image

@craiglabenz
Copy link

I'm confused. Are you sure we're talking about the right package? The latest non-nullsafe version is 1.2.0 and I'm proposing in this PR to use 2.0.0 for the null safe version.

omg, I saw this email on my phone the same morning I'd released a null-safe version of one of my packages and chatted with people about it, and I thought this was for that 😆

Congrats to @yadaniyil for landing this!

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.