panorama
panorama copied to clipboard
Many errors when I exit the panorama viewer screen
If I open a screen where I have a panorama widget from the home page and then go back to the home page, in the console I have several errors because the gyroscope event continues to be sent by the panorama component ...
A way to solve this issue is to assign this.scene = null in the dispose of the panorama.dart code:
@override
void dispose() {
this.scene = null;
_controller.dispose();
super.dispose();
}
Try this commit 21130bad5476c96a18379cea209886a95b50bc5c
With the latest version in this repository this works.