Unverified Commit 156c3132 authored by Dominik Roszkowski's avatar Dominik Roszkowski Committed by GitHub

Dispose animation controller in platform view benchmarks (#110413)

parent 23d258df
...@@ -116,6 +116,13 @@ class _RotationContainerState extends State<RotationContainer> ...@@ -116,6 +116,13 @@ class _RotationContainerState extends State<RotationContainer>
); );
_rotationController.repeat(); _rotationController.repeat();
} }
@override
void dispose() {
_rotationController.dispose();
super.dispose();
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return RotationTransition( return RotationTransition(
......
...@@ -121,6 +121,13 @@ class _RotationContainerState extends State<RotationContainer> ...@@ -121,6 +121,13 @@ class _RotationContainerState extends State<RotationContainer>
); );
_rotationController.repeat(); _rotationController.repeat();
} }
@override
void dispose() {
_rotationController.dispose();
super.dispose();
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return RotationTransition( return RotationTransition(
......
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