Dispose animation controller in platform view benchmarks (#110413)

This commit is contained in:
Dominik Roszkowski 2022-10-26 22:24:14 +02:00 committed by GitHub
parent 23d258df57
commit 156c313219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -116,6 +116,13 @@ class _RotationContainerState extends State<RotationContainer>
);
_rotationController.repeat();
}
@override
void dispose() {
_rotationController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return RotationTransition(

View File

@ -121,6 +121,13 @@ class _RotationContainerState extends State<RotationContainer>
);
_rotationController.repeat();
}
@override
void dispose() {
_rotationController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return RotationTransition(