mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Dispose animation controller in platform view benchmarks (#110413)
This commit is contained in:
parent
23d258df57
commit
156c313219
@ -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>
|
|||||||
);
|
);
|
||||||
_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(
|
||||||
|
Loading…
Reference in New Issue
Block a user