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 #15

Closed
kw2019ltd opened this issue Mar 4, 2021 · 4 comments
Closed

Migrate to null safety #15

kw2019ltd opened this issue Mar 4, 2021 · 4 comments

Comments

@kw2019ltd
Copy link

kw2019ltd commented Mar 4, 2021

Description

All dependencies are migrated to null safety. So we should migrate this package to null safety.
Resources

https://www.youtube.com/watch?v=eBr5tlumwlg&feature=youtu.be
https://medium.com/dartlang/announcing-dart-null-safety-beta-87610fee6730

@nipunasudha
Copy link

This package is last updated in 2019, I don't think there will be an immediate update. There are only 15 lines of code in here. I'm just gonna create a new mixin with that code, for now at least!

image

@nico85
Copy link

nico85 commented Mar 10, 2021

This package is last updated in 2019, I don't think there will be an immediate update. There are only 15 lines of code in here. I'm just gonna create a new mixin with that code, for now at least!

image

If you would kindly tell me how to do that? or if you made a fork would you pass me the git? i'm new to flutter and i use this mixin, thanks!

@nipunasudha
Copy link

This package is last updated in 2019, I don't think there will be an immediate update. There are only 15 lines of code in here. I'm just gonna create a new mixin with that code, for now at least!
image

If you would kindly tell me how to do that? or if you made a fork would you pass me the git? i'm new to flutter and i use this mixin, thanks!

Since this is a very simple single file package, I created a new file called 'after_layout_mixin.dart' in my project, and copy pasted the code from here -> https://github.com/fluttercommunity/flutter_after_layout/blob/53abdd3205ad8c9d275a38b02914041bc8c340d6/lib/after_layout.dart

Remove this package from pubspec & import your own mixin instead. When migrating to null safety using the migrate tool, Flutter will automatically add nullsafety to your new mixin.

Note: this is not a good thing to do if the package is a big & complex one, but since this package is only 15 lines, you can do that without consequences.

@slightfoot
Copy link
Member

Published new null-safe version v1.1.0.

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

No branches or pull requests

4 participants