Skip to content

Add sound null safety#76

Merged
simc merged 34 commits intosimc:masterfrom
timsneath:master
Nov 24, 2020
Merged

Add sound null safety#76
simc merged 34 commits intosimc:masterfrom
timsneath:master

Conversation

@timsneath
Copy link
Contributor

This pull request provides support for sound null safety in the package, per https://dart.dev/null-safety/migration-guide. This code is compatible with null safe Flutter apps. It doesn't attempt to remove nullable members, but for non-nullable members, it does away with unnecessary null checking.

It is versioned as v3.0.0-nullsafety.0 per the guidance in the above document.

There are a couple of warnings in the demo/ folder for dependencies that haven't been migrated; hopefully those will get migrated before null-safety is stable. At that time, the version should be bumped up to include those null-safe versions.

One note: I see that bottom_navy_bar no longer supports more than four buttons. As a result, I've left that at the lower version rather than updating it as part of this migration.

@simc
Copy link
Owner

simc commented Nov 24, 2020

Perfect, thanks 😊

@simc simc merged commit 4a11f58 into simc:master Nov 24, 2020
@timsneath
Copy link
Contributor Author

You're a hero! Thanks. I use this package myself for my Dad Jokes app so it was fun to use as a test case for our migration tools.

By the way, you can publish this to pub.dec side by side with the existing version. This will show up as a prerelease for those who are running in sound null safety mode.

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.

2 participants