Unverified Commit 3e0cefb8 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Fix build by removing new (#22634)

parent d0c95608
......@@ -257,9 +257,8 @@ void main() {
});
testWidgets('RotationTransition animates', (WidgetTester tester) async {
final AnimationController controller =
new AnimationController(vsync: const TestVSync());
final Widget widget = new RotationTransition(
final AnimationController controller = AnimationController(vsync: const TestVSync());
final Widget widget = RotationTransition(
alignment: Alignment.topRight,
turns: controller,
child: const Text('Rotation', textDirection: TextDirection.ltr),
......@@ -285,9 +284,8 @@ void main() {
testWidgets('RotationTransition maintains chosen alignment during animation',
(WidgetTester tester) async {
final AnimationController controller =
new AnimationController(vsync: const TestVSync());
final Widget widget = new RotationTransition(
final AnimationController controller = AnimationController(vsync: const TestVSync());
final Widget widget = RotationTransition(
alignment: Alignment.topRight,
turns: controller,
child: const Text('Rotation', textDirection: TextDirection.ltr),
......
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