zyzdev / flutter_street_view

10 stars 29 forks source link

Does this package reuse panorama object to reduce instantiation count? #16

Closed cantaspinar closed 1 year ago

cantaspinar commented 2 years ago

A dynamic Street View panorama is charged for each instantiation of a panorama object. According to Google docs, an instantiation of a panorama object occurs:

On Android, with one of StreetViewPanoramaFragment, SupportStreetViewPanoramaFragment, or StreetViewPanoramaView classes. A panorama is counted each time the related onCreate() method is called.

On iOS, with the GMSPanoramaView object.

I wanted to ask if using FlutterGoogleStreetView widget creates a panoroma object every time or reuses the first one.

zyzdev commented 1 year ago

I have good news for you! v3.0.0 add reusing feature to reduce the count of instantiation panorama. Web included this feature at v2.1.0 already. Try it.