panorama icon indicating copy to clipboard operation
panorama copied to clipboard

Many errors when I exit the panorama viewer screen

Open dariocavada opened this issue 5 years ago • 2 comments

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();
  }

dariocavada avatar Dec 18 '20 10:12 dariocavada

Try this commit 21130bad5476c96a18379cea209886a95b50bc5c

zesage avatar Dec 21 '20 09:12 zesage

With the latest version in this repository this works.

dariocavada avatar Dec 23 '20 16:12 dariocavada