`sized_box_for_whitespace` inconsistency
nate-thegrate opened this issue · 0 comments
nate-thegrate commented
The sized_box_for_whitespace
rule only activates when the Container has a child
, perhaps because swapping out the Container's default LimitedBox
child could cause behavioral changes.
But this means that the linter rule's example wouldn't actually trigger the rule:
BAD:
Widget buildRow() { return Row( children: <Widget>[ const MyLogo(), Container(width: 4), const Expanded( child: Text('...'), ), ], ); }