flr-as-plugin icon indicating copy to clipboard operation
flr-as-plugin copied to clipboard

Be less controlling of pubspec.yaml

Open d-silveira opened this issue 4 years ago • 1 comments

Hi,

love using your plugin, it does exactly what I wanted. My only complaint so far is that every time it generates, it totally messes up my pubspec.yaml in unnecessary ways:

  1. deletes all my comments;
  2. deletes all my empty line;
  3. assets are kept at the wrong indent, should be 2 spaces further to the right;
  4. it writes every resource to pubspec.yaml, when it should be enough to write the folders;

Thanks alot, regards,

d-silveira avatar Apr 19 '20 19:04 d-silveira

Unfortunately, up to now there is no a YAML parser library that supports comments, so the features that you want is currently unavailable now. If you have any good solution, you can share it with us.

YK-Unit avatar Apr 20 '20 07:04 YK-Unit