Got linter issues? Use dart fix --apply
¶
Ever tried to update an old Flutter project to the latest APIs and got a ton of linter issues? 😭
For example, all the default text styles have been renamed in Flutter 3.7. 🙄
In cases like this, just run dart fix --apply
. 🚀
And you’re good to go! 👌
There’s much more to know about dart fix, the Flutter analyzer, and ways to fix errors automatically in VSCode.
For all the details, check the latest tip on my website:
Previous | Next |
---|---|
Using context.mounted in Flutter 3.7 |
Firebase Billing and Cost Calculator |
Last update:
18 septembre 2023
Created: 18 septembre 2023
Created: 18 septembre 2023