File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/flutter/test/widgets Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -100,11 +100,13 @@ void main() {
100100 // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
101101 experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
102102 (WidgetTester tester) async {
103- final Animation <Decoration > curvedDecorationAnimation =
104- decorationTween.animate (CurvedAnimation (
103+ final CurvedAnimation curvedAnimation = CurvedAnimation (
105104 parent: controller,
106105 curve: Curves .easeOut,
107- ));
106+ );
107+ addTearDown (curvedAnimation.dispose);
108+ final Animation <Decoration > curvedDecorationAnimation =
109+ decorationTween.animate (curvedAnimation);
108110
109111 final DecoratedBoxTransition transitionUnderTest = DecoratedBoxTransition (
110112 decoration: curvedDecorationAnimation,
You can’t perform that action at this time.
0 commit comments