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