Test for Transform in Padding (#13898)

This commit is contained in:
Ian Hickson 2018-01-08 21:39:25 -08:00 committed by GitHub
parent ce83f4fbe2
commit b50ccc49d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,4 +277,22 @@ void main() {
700.0, -100.0, 0.0, 1.0,
]);
});
testWidgets('applyPaintTransform of Transform in Padding', (WidgetTester tester) async {
await tester.pumpWidget(
new Padding(
padding: const EdgeInsets.only(
left: 30.0,
top: 20.0,
right: 50.0,
bottom: 70.0,
),
child: new Transform(
transform: new Matrix4.diagonal3Values(2.0, 2.0, 2.0),
child: const Placeholder(),
),
),
);
expect(tester.getTopLeft(find.byType(Placeholder)), const Offset(30.0, 20.0));
});
}