This reverts commit 1f5d904182.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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', () {
|
||||
|
||||
Reference in New Issue
Block a user