Turn on sized_box_for_whitespace lint, fix instances. (#77099)
This commit is contained in:
@@ -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')),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -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'),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user