Skip to content

remove "This trailing comma makes auto-formatting nicer for build methods" from flutter create template #175655

@jacksonrl

Description

@jacksonrl

Steps to reproduce

See

), // This trailing comma makes auto-formatting nicer for build methods.

floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.

As far as I can tell this is no longer needed since the new formatter is enabled by default, so the comment should probably be removed. Other usages:

https://github.com/search?q=repo%3Aflutter%2Fflutter%20%2F%2F%20This%20trailing%20comma%20makes%20auto-formatting%20nicer%20for%20build%20methods.&type=code

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterr: fixedIssue is closed as already fixed in a newer versionrefactorImproving readability/efficiency without behavioral changesteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions