In the score tab of a Flutter package on pub.dev, I get 10 points removed because of formatting.
Though, I did run flutter format .
within the project root directory.
The file mentioned in the score tab was successfully formatted by the command.
Also, I did that after updating Flutter.
It says that my file doesn’t match Dart formatter and that I should run the flutter format .
command.
Here is the file in question:
https://github.com/lcuis/search_choices/blob/master/lib/search_choices.dart
Is there a way to know which part of the file is not complying?
Is there more to do than updating Flutter to update the flutter format tool?
Should I use another tool than flutter format?
Is there any other solution than just accepting a lower score?
Flutter (Channel master, 2.6.0-6.0.pre.82, on Debian GNU/Linux 10 (buster) 4.19.0-17-amd64, locale en_US.UTF-8)
The formatter version is the one mentioned at the bottom of the Score page:
In order to install a specific version of the dart
sdk, I had to follow these instructions:
https://dart.dev/get-dart
Being on Debian and wishing to align with version 2.13.14
, I had to run:
apt-get install dart=2.13.4-1