Unverified Commit 716d2524 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Remove prefer_const_constructors ignores (#123284)

Remove prefer_const_constructors ignores
parent 11bbce1b
...@@ -329,18 +329,17 @@ void main() { ...@@ -329,18 +329,17 @@ void main() {
const Key child0Key = Key('child0'); const Key child0Key = Key('child0');
const Key child1Key = Key('child1'); const Key child1Key = Key('child1');
// TODO(goderbauer): Reevaluate the following ignores when https://github.com/dart-lang/sdk/issues/51800 is fixed. await tester.pumpWidget(const MaterialApp(
await tester.pumpWidget(MaterialApp( // ignore: prefer_const_constructors home: Material(
home: Material( // ignore: prefer_const_constructors child: Center(
child: Center( // ignore: prefer_const_constructors child: ExpansionTile(
child: ExpansionTile( // ignore: prefer_const_constructors title: Text('title'),
title: const Text('title'),
// Set the column's alignment to Alignment.centerRight to test CrossAxisAlignment // Set the column's alignment to Alignment.centerRight to test CrossAxisAlignment
// of children widgets. This helps distinguish the effect of expandedAlignment // of children widgets. This helps distinguish the effect of expandedAlignment
// and expandedCrossAxisAlignment later in the test. // and expandedCrossAxisAlignment later in the test.
expandedAlignment: Alignment.centerRight, expandedAlignment: Alignment.centerRight,
expandedCrossAxisAlignment: CrossAxisAlignment.start, expandedCrossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[ children: <Widget>[
SizedBox(height: 100, width: 100, key: child0Key), SizedBox(height: 100, width: 100, key: child0Key),
SizedBox(height: 100, width: 80, key: child1Key), SizedBox(height: 100, width: 80, key: child1Key),
], ],
......
...@@ -144,16 +144,15 @@ class RenderSelectionSpy extends RenderProxyBox ...@@ -144,16 +144,15 @@ class RenderSelectionSpy extends RenderProxyBox
@override @override
SelectionGeometry get value => _value; SelectionGeometry get value => _value;
// TODO(goderbauer): Reevaluate the ignore when https://github.com/dart-lang/sdk/issues/51800 is fixed. SelectionGeometry _value = const SelectionGeometry(
SelectionGeometry _value = SelectionGeometry( // ignore: prefer_const_constructors
hasContent: true, hasContent: true,
status: SelectionStatus.uncollapsed, status: SelectionStatus.uncollapsed,
startSelectionPoint: const SelectionPoint( startSelectionPoint: SelectionPoint(
localPosition: Offset.zero, localPosition: Offset.zero,
lineHeight: 0.0, lineHeight: 0.0,
handleType: TextSelectionHandleType.left, handleType: TextSelectionHandleType.left,
), ),
endSelectionPoint: const SelectionPoint( endSelectionPoint: SelectionPoint(
localPosition: Offset.zero, localPosition: Offset.zero,
lineHeight: 0.0, lineHeight: 0.0,
handleType: TextSelectionHandleType.left, handleType: TextSelectionHandleType.left,
......
...@@ -1983,16 +1983,15 @@ class RenderSelectionSpy extends RenderProxyBox ...@@ -1983,16 +1983,15 @@ class RenderSelectionSpy extends RenderProxyBox
@override @override
SelectionGeometry get value => _value; SelectionGeometry get value => _value;
// TODO(goderbauer): Reevaluate the ignore when https://github.com/dart-lang/sdk/issues/51800 is fixed. SelectionGeometry _value = const SelectionGeometry(
SelectionGeometry _value = SelectionGeometry( // ignore: prefer_const_constructors
hasContent: true, hasContent: true,
status: SelectionStatus.uncollapsed, status: SelectionStatus.uncollapsed,
startSelectionPoint: const SelectionPoint( startSelectionPoint: SelectionPoint(
localPosition: Offset.zero, localPosition: Offset.zero,
lineHeight: 0.0, lineHeight: 0.0,
handleType: TextSelectionHandleType.left, handleType: TextSelectionHandleType.left,
), ),
endSelectionPoint: const SelectionPoint( endSelectionPoint: SelectionPoint(
localPosition: Offset.zero, localPosition: Offset.zero,
lineHeight: 0.0, lineHeight: 0.0,
handleType: TextSelectionHandleType.left, handleType: TextSelectionHandleType.left,
...@@ -2073,16 +2072,15 @@ class RenderSelectAll extends RenderProxyBox ...@@ -2073,16 +2072,15 @@ class RenderSelectAll extends RenderProxyBox
@override @override
SelectionGeometry get value => _value; SelectionGeometry get value => _value;
// TODO(goderbauer): Reevaluate the ignore when https://github.com/dart-lang/sdk/issues/51800 is fixed. SelectionGeometry _value = const SelectionGeometry(
SelectionGeometry _value = SelectionGeometry( // ignore: prefer_const_constructors
hasContent: true, hasContent: true,
status: SelectionStatus.uncollapsed, status: SelectionStatus.uncollapsed,
startSelectionPoint: const SelectionPoint( startSelectionPoint: SelectionPoint(
localPosition: Offset.zero, localPosition: Offset.zero,
lineHeight: 0.0, lineHeight: 0.0,
handleType: TextSelectionHandleType.left, handleType: TextSelectionHandleType.left,
), ),
endSelectionPoint: const SelectionPoint( endSelectionPoint: SelectionPoint(
localPosition: Offset.zero, localPosition: Offset.zero,
lineHeight: 0.0, lineHeight: 0.0,
handleType: TextSelectionHandleType.left, handleType: TextSelectionHandleType.left,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment