You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I did see the issue where this cannot work with tabs but I am using 2 spaces, so I think I should be fine. #1015
Anyways, the issue im seeing is that when you're initializing a widget, the first argument indents by 4 spaces, and makes it look a little off. Here's a single file I've been working on that shows it:
I believe this is caused by a missing trailing comma near the end of your code:
));
}
}
Without trailing commas dartfmt indents wrapped lines using 4 spaces. Here your code has a mix, so you end up with some lines formatted one way and some the other.
I don't know of one - there's some discussion over at dart-lang/sdk#27084 about this, but I think it's hard to know when commas should/shouldn't be added. I'd recommend subscribing to and/or commenting on that issue, since any fix for this would need to come from the SDK or dartfmt.
Hi there, I did see the issue where this cannot work with tabs but I am using 2 spaces, so I think I should be fine. #1015
Anyways, the issue im seeing is that when you're initializing a widget, the first argument indents by 4 spaces, and makes it look a little off. Here's a single file I've been working on that shows it:
Can see that
home: Scaffold(
is indented one too far, and that kind makes the nested arguments below it look weird too.I've also captured the logs here in case it's helpful.
Dart-Code-Log-2019-08-01 14-49-12.txt
The text was updated successfully, but these errors were encountered: