Turn on sized_box_for_whitespace lint, fix instances. (#77099)

This commit is contained in:
Greg Spencer
2021-03-04 01:29:02 +00:00
committed by GitHub
parent 781eb13642
commit c6ef4c75d9
128 changed files with 1350 additions and 1367 deletions

View File

@@ -12,7 +12,7 @@ class SimpleScroll extends StatelessWidget {
return ListView(
children: <Widget>[
for (int n = 0; n < 200; n += 1)
Container(height: 40.0, child: Text('$n')),
SizedBox(height: 40.0, child: Text('$n')),
],
);
}

View File

@@ -87,11 +87,11 @@ class StackSizePage extends StatelessWidget {
Widget build(BuildContext context) {
return Material(
child: Column(
children: <Widget>[
Container(
children: const <Widget>[
SizedBox(
width: 200,
height: 100,
child: const ParentWidget(),
child: ParentWidget(),
),
],
),

View File

@@ -11,11 +11,11 @@ class TextPage extends StatelessWidget {
Widget build(BuildContext context) {
return Material(
child: Column(
children: <Widget>[
Container(
children: const <Widget>[
SizedBox(
width: 200,
height: 100,
child: const TextField(
child: TextField(
key: Key('basic-textfield'),
),
),