Revert "Re-enable usage of TransformLayers with text in RenderListWheelViewport (#15625)" (#16042)

This reverts commit 1f5d904182.
This commit is contained in:
xster
2018-03-28 18:58:19 -07:00
committed by GitHub
parent 4565395693
commit cab8242f27
2 changed files with 3 additions and 34 deletions

View File

@@ -562,7 +562,9 @@ class RenderListWheelViewport
);
context.pushTransform(
needsCompositing,
// Text with TransformLayers and no cullRects currently have an issue rendering
// https://github.com/flutter/flutter/issues/14224.
false,
offset,
_centerOriginTransform(transform),
// Pre-transform painting function.

View File

@@ -385,39 +385,6 @@ void main() {
]),
));
});
testWidgets('Painting creates layers', (WidgetTester tester) async {
await tester.pumpWidget(
new Directionality(
textDirection: TextDirection.ltr,
child: new ListWheelScrollView(
itemExtent: 100.0,
children: <Widget>[
new Container(
width: 200.0,
child: const Center(
child: const Text('blah'),
),
),
],
),
),
);
expect(
new List<TransformLayer>.from(
tester.layers.where((Layer layer) => layer is TransformLayer)
)
.map((TransformLayer layer) => layer.transform.storage)
.toList(),
contains(equals(<dynamic>[
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
-1.2, -0.9, 1.0, -0.003,
moreOrLessEquals(0.0), moreOrLessEquals(0.0), 0.0, moreOrLessEquals(1.0),
])),
);
});
});
group('scroll notifications', () {