I've updated pedantic package and ended up 1K+ problems. Many of them are prefer_single_quotes or unnecessary this etc. They are one click away to fix. I think eslint or some other tools can do that within the VSCode.
Is there a way to do it with Flutter projects? I find dartfix package but says “No recommended changes” after running it. What I want to do is fix all the auto-fixable problems on the problems tab.
dartfix on pub.dev
Simply right click on any of the warning in the problems tab in vscode and choose Add const modifiers everywhere in the file.
VS Code is a lightweight editor that has great Flutter support, good extensibility and sees widespread use across the developer community.
Install the Flutter and Dart pluginsStart VS Code. Invoke View > Command Palette…. Type “install”, and select Extensions: Install Extensions. Type “flutter” in the extensions search field, select Flutter in the list, and click Install.
The two main IDEs for Flutter development are Visual Studio Code and Android Studio. Visual Studio is better for team collaboration, but it doesn't run on Linux.
Not sure if you have tried the built in fixes using dart fix.
Use dart fix --dry-run
to see suggested changes and dart fix --apply
to apply them.
https://dart.dev/tools/dart-fix
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With