Problems with moving comments when automatically moving child arg to last parameter position of widget constructor #55662
Labels
analyzer-quick-fix
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
I get
The 'child' argument should be last in widget constructor invocations
for this code:Issue 1: Hitting Save moves
child
to the end, as expected. But the comment is lost:Issue 2: If the comment is on a different line, it moves with the line (this is correct so far):
However, if there are only 2 lines, weirdly the parameters switch without moving the comment!
Workspace Environment
Output from 'dart info'
/opt/flutter/bin/cache/dart-sdk/bin/dart info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
General info
Project info
Process info
Output from 'flutter doctor'
/opt/flutter/bin/flutter doctor -v
The text was updated successfully, but these errors were encountered: