Courses

[NEW] Flutter 3 Mobile App with Laravel 12 API

Automated Dart Code Fixes

Now that we have some code let's talk about keeping it clean. This is important because it will make it easier to maintain and understand. We can use some tools to help us with that.

There's an official flutter tool that we can run with our installation:

dart fix --apply

Let's run it on our code and see the output:

But this is not the only tool we have. We can also look for some specific issues in our code directly in the editor:

And, of course, as we write code, we can also see some suggestions:

All of these combined will help us maintain our code style.

Note: we have now applied an automated fix to our code. At the end of the course, we will look at all remaining issues and fix them manually.


Now that we have cleaned up our code a bit, we can start working on actual API calls.


Check out the GitHub Commit for this lesson.

Previous: First Screen - Categories List

No comments yet…

avatar
You can use Markdown