FlutterGoogleStreetView class
Constructors
-
FlutterGoogleStreetView({Key? key, StreetViewCreatedCallback? onStreetViewCreated, CameraChangeListener? onCameraChangeListener, PanoramaChangeListener? onPanoramaChangeListener, PanoramaClickListener? onPanoramaClickListener, PanoramaLongClickListener? onPanoramaLongClickListener, String? initPanoId, LatLng? initPos, double? initRadius, StreetViewSource? initSource, double? initFov = 90, double? initBearing, double? initTilt, double? initZoom, bool panningGesturesEnabled = true, bool streetNamesEnabled = true, bool userNavigationEnabled = true, bool zoomGesturesEnabled = true, Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers})
-
const
Properties
-
gestureRecognizers
→ Set<Factory<OneSequenceGestureRecognizer>>?
-
Which gestures should be consumed by the streetView.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
initBearing
→ double?
-
Specifies bearing for initialization position,
it worked while initPos or initPanoId was specified.
Sets the direction that the camera is pointing in, in degrees clockwise from north.
final
-
initFov
→ double?
-
iOS only
The field of view (FOV) encompassed by the larger dimension (width or height) of the view in degrees at zoom 1.
This is clamped to the range
1, 160
degrees, and has a default value of 90.
Lower FOV values produce a zooming in effect; larger FOV values produce an fisheye effect.
final
-
initPanoId
→ String?
-
Specifies initialization position by panoramaID.
initPos should be null while initPanoId was set.
final
-
initPos
→ LatLng?
-
Specifies initialization position by latitude and longitude.
initPanoId should be null while initPos was set.
final
-
initRadius
→ double?
-
Specifies radius used to search for a Street View panorama
final
-
initSource
→ StreetViewSource?
-
Specifies the source filter used to search for a Street View panorama,
or DEFAULT if unspecified.
final
-
initTilt
→ double?
-
Specifies tilt for initialization position,
it worked while initPos or initPanoId was specified.
This value is restricted to being between -90 (directly down) and 90 (directly up).
final
-
initZoom
→ double?
-
Specifies zoom for initialization position,
it worked while initPos or initPanoId was specified.
Sets the zoom level of the camera. The original zoom level is set at 0.
A zoom of 1 would double the magnification. The zoom is clamped between 0 and the maximum zoom level.
The maximum zoom level can vary based upon the panorama.
Clamped means that any value falling outside this range will be set to the closest extreme that falls within the range.
For example, a value of -1 will be set to 0.
Another example: If the maximum zoom for the panorama is 19,
and the value is given as 20, it will be set to 19.
Note that the camera zoom need not be an integer value.
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onCameraChangeListener
→ CameraChangeListener?
-
final
-
onPanoramaChangeListener
→ PanoramaChangeListener?
-
final
-
onPanoramaClickListener
→ PanoramaClickListener?
-
final
-
onPanoramaLongClickListener
→ PanoramaLongClickListener?
-
final
-
onStreetViewCreated
→ StreetViewCreatedCallback?
-
Callback method for when the street view is ready to be used.
final
-
panningGesturesEnabled
→ bool
-
Sets whether the user is able to use panning gestures
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
streetNamesEnabled
→ bool
-
Sets whether the user is able to see street names on panoramas
final
-
userNavigationEnabled
→ bool
-
Sets whether the user is able to move to another panorama
final
-
zoomGesturesEnabled
→ bool
-
Sets whether the user is able to use zoom gestures
final