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