-
Notifications
You must be signed in to change notification settings - Fork 125
Poor formatting with flutter's Point constructor (WONTFIX) #531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Even with parents around the arguments, it doesn't get better: // -l 120
Point transformed = new Point((position.x - childParentData.offset.dx), (position.y - childParentData.offset.dy));
// -l 90
Point transformed = new Point(
(position.x - childParentData.offset.dx), (position.y - childParentData.offset.dy));
// -l 80
Point transformed = new Point((position.x - childParentData.offset.dx),
(position.y - childParentData.offset.dy)); |
I could work around this if I had a way to say "don't format this line", like the suggestion in #530: Point transformed = new Point(position.x - childParentData.offset.dx, //
position.y - childParentData.offset.dy); // |
Gated on whether or not we do any vertical alignment at all (#508). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code:
...is carefully aligned so that you can see the parallels between the x and y coordinate of the point.
However, the formatter currently turns this into the following (wrapping at 100 cols):
This is less readable.
The text was updated successfully, but these errors were encountered: