How to migrate Dart packages to null safety

preview_player
Показать описание

My channel has other videos with basically the same content but longer. This is my attempt to distill those into a single video that just shows the migration tool flow.

0:00 Introduction
0:52 Dart compatibility
2:26 Updating dependencies
4:31 Running `dart migrate`
5:55 Iterating
8:41 Applying migration
9:54 Conclusion
Рекомендации по теме
Комментарии
Автор

Thank you so much for this! I was given a concept for a UI widget which I found almost in complete form in a pub.dev package, but when I checked its score, I found it was not migrated to null safety. The docs led me here. This is my first real foray into programming and it looks like I'm diving straight into the deep end, but I'm pleasantly surprised by how much of this I understood after configuring The Net Ninja's wonderful (but pre-Null Safety) Flutter tutorials.

andythedishwasher
Автор

Thanks for this nice quick intro to the migration tool Filip. Going to try it out soon.

rydmike
Автор

Thank you especially for the hint we can (should) switch between the migration tool and the IDE!

damianzdunek
Автор

Finally took the plunge into null safety! Thanks Filip.

HezOmanjo
Автор

Excellent demonstration, thanks Filip!

KristenMcWilliam
Автор

Thanks Mr.Hráček, really helped out a ton!

GaithTalahmeh
Автор

Very nice introduction. Thanks for taking the time to make it.

SuperSomeguy
Автор

Thank you, sir, you guys are so much appreciated

julions
Автор

Thank you for explaining important things.

ArturJakutsevich
Автор

In this example, according to the check marks you received from the dart pub outdated command, you appeared to be working with a package which had a "resolvable" version available. In my specific use case, I'm working with a package called circle_wheel_scroll which does not appear to have a resolvable version since I am getting Xs instead of check marks in the last two columns when I run the pub outdated command. Does anyone have recommendations for how to approach migrating a package in that situation?

andythedishwasher
Автор

I know the importance if this, but we can't migrate to null safety because we depend on some libraries that have not been upgraded yet.

Ainigma
Автор

I love you bro, but why don't you make a script before you start recording the video, that would be great and the explanation would be consistent

abdoshaibany
Автор

What if you write a new package today ? Do you have to write it non null safe and migrate it ? Can't you do the opposite ?

cedvdb
Автор

All dependencies with resolvable empty... No resolution was found

maximilianososa
Автор

what about Try migrating the imported library. • Im stuck! :D

marekkowalski
Автор

Can you share for FONT FAMILY or Font file

siddharthmakadiya
Автор

Excuse me, do you say "bank operator" or I am not understanding correctly?

adianblabla
Автор

You have destroyed flutter with this update, where the hell is the simplicity now? there is no back compatibility with several plugins. How can i migrate an app with 1 million users and 1000 dart files? Ill go back to native, thanks for nothing.

pedromo
Автор

this is incompatible to older version!!! real foolish!!!

tonybenjamin