-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelinter-lint-proposaltype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Lint that informs when a Stack, Row, or Column only has a single child in the children parameter.
// BAD, has only one child in children
const Stack(children: [Text('Hello World!')]),
const Row(children: [Text('Hello World!')]),
const Column(children: [Text('Hello World!')]),
// GOOD, has more than one child in children
const Stack(children: [Text('Hello World!'), Text('Hello World Again!')]),
const Row(children: [Text('Hello World!'), Text('Hello World Again!')]),
const Column(children: [Text('Hello World!'), Text('Hello World Again!')]),Number-3434, arthurbcd and navaronbracke
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelinter-lint-proposaltype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug