apply upcoming lint prefer_const_literals_to_create_immutables (#14029)
This commit is contained in:
committed by
GitHub
parent
5dc4ce85d9
commit
0fe1e5bf5b
@@ -177,7 +177,7 @@ void main() {
|
||||
await tester.pumpWidget(new Row(
|
||||
textDirection: TextDirection.ltr,
|
||||
children: <Widget>[
|
||||
new Column(children: <Text>[const Text('foo', textDirection: TextDirection.ltr)]),
|
||||
new Column(children: const <Text>[const Text('foo', textDirection: TextDirection.ltr)]),
|
||||
const Text('bar', textDirection: TextDirection.ltr),
|
||||
],
|
||||
));
|
||||
@@ -237,7 +237,7 @@ void main() {
|
||||
await tester.pumpWidget(new Row(
|
||||
textDirection: TextDirection.ltr,
|
||||
children: <Widget>[
|
||||
new Column(children: <Text>[const Text('foo', textDirection: TextDirection.ltr)]),
|
||||
new Column(children: const <Text>[const Text('foo', textDirection: TextDirection.ltr)]),
|
||||
const Text('bar', textDirection: TextDirection.ltr),
|
||||
],
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user