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
The "before" formatting is just one example of several ways that'd be readable, but the "after" formatting is definitely not one of them. The Sky API encourages many levels of nested constructors so this comes up a lot. This is just a simple example, but I could provide many others if it is helpful.
This is mostly working as intended. The style guide says that ] always goes on the next line when the list is multi-line. One thing we could possibly improve here is to allow children: to remain on the preceding line even though the argument contains a split. (In most cases, when an argument contains a newline internally, that forces the surrounding argument list to also split.)
I'm running
dartfmt
from the 1.12.0-dev.3.1 Dart SDK on some Sky code.Before:
After:
The "before" formatting is just one example of several ways that'd be readable, but the "after" formatting is definitely not one of them. The Sky API encourages many levels of nested constructors so this comes up a lot. This is just a simple example, but I could provide many others if it is helpful.
/cc @ksimbili
The text was updated successfully, but these errors were encountered: