Closed davoutuk closed 1 year ago
Drilling down further on this. I think I have found the underlying cause.
In my app I am using the "connectivity_plus" package to monitor internet/wifi connectivity. This manifests itself as a stream builder and I have this set a controlling function around the call to build the main view window. Hence, if the internet connection is lost the normal main window is replaced with another page display to explain loss of connectivity
It seems that whenever I call the Flutter_street_view widget for the first time this is triggering some "ConnectionState.waiting" changes that are being picked up by the "connectivity_plus". Hence, clicking on an icon that is meant to display the street view ends up repainting the whole app again
Note that this problem only occurs on the first time that the flutter street view is asked to paint itself. This generates a situation where:
Any suggestions on how to fix this?
One additional finding... Even if I take out the 'connectivity_plus' code, the first time I click to show the street view something is causing the whole main page to redraw. Again, it works fine on all secondary clicks
Resolved
@davoutuk App keeps crashing when using flutter_google_street_view: ^3.1.4. There are too many issues are already opened, please make it to close soon so that users can use the package
I have been trying to use "onPanoramaChangeListener" as a way of capturing whether a street exists for a given LatLng, but I'm finding that this causing an uncaptured exception inside your package.
Here's the code
If I run it as shown above with 'onPanoramaChangeListener' commented out, then I get a black screen displayed for the screen view and the following log output
If I activate the 'onPanoramaChangeListener' event handler as shown below...
... then this for the same location generates the following exception...