FlutterGoogleStreetView class
Constructors
-
FlutterGoogleStreetView({Key? key, StreetViewCreatedCallback? onStreetViewCreated, CameraChangeListener? onCameraChangeListener, PanoramaChangeListener? onPanoramaChangeListener, PanoramaClickListener? onPanoramaClickListener, PanoramaLongClickListener? onPanoramaLongClickListener, CloseClickListener? onCloseClickListener, String? initPanoId, LatLng? initPos, double? initRadius, StreetViewSource? initSource, double? initFov, double? initBearing, double? initTilt, double? initZoom, bool? panningGesturesEnabled, bool streetNamesEnabled = true, bool userNavigationEnabled = true, bool? zoomGesturesEnabled, Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers, Set<Marker>? markers, bool? addressControl, ControlPosition? addressControlOptions, bool? disableDefaultUI, bool? disableDoubleClickZoom = kIsWeb ? false : null, bool? enableCloseButton = kIsWeb ? false : null, bool? fullscreenControl, ControlPosition? fullscreenControlOptions, bool? linksControl, bool? motionTracking, bool? motionTrackingControl, ControlPosition? motionTrackingControlOptions, bool? scrollwheel = kIsWeb ? true : null, bool? panControl, ControlPosition? panControlOptions, bool? zoomControl, ControlPosition? zoomControlOptions, bool? visible})
-
const
Properties
-
addressControl
→ bool?
-
The enabled/disabled state of the address control.
Web only
final
-
addressControlOptions
→ ControlPosition?
-
The display position for the address control.
Web only
final
-
disableDefaultUI
→ bool?
-
Enables/disables all default UI.
Web only
final
-
disableDoubleClickZoom
→ bool?
-
Enables/disables zoom on double click. Disabled by default.
Web only
final
-
enableCloseButton
→ bool?
-
If true, the close button is displayed. Disabled by default.
Web only
final
-
fullscreenControl
→ bool?
-
The enabled/disabled state of the fullscreen control.
Web only
final
-
fullscreenControlOptions
→ ControlPosition?
-
The display position for the fullscreen control.
Web only
final
-
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?
-
The field of view (FOV) encompassed by the larger dimension (width or height) of the view in degrees at zoom 1.
iOS only
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
-
linksControl
→ bool?
-
The enabled/disabled state of the links control.
Web only
final
-
markers
→ Set<Marker>?
-
Markers to be placed on the street view.
iOS only
final
-
motionTracking
→ bool?
-
Whether motion tracking is on or off.
Web only
Enabled by default when the motion tracking control is present,so that the POV (point of view) follows the orientation of the device.
This is primarily applicable to mobile devices.
If motionTracking is set to false while motionTrackingControl is enabled,
the motion tracking control appears but tracking is off. The user can tap the motion tracking control to toggle this option.
final
-
motionTrackingControl
→ bool?
-
The enabled/disabled state of the motion tracking control.
Web only
Enabled by default when the device has motion data, so that the control appears on the street view.
This is primarily applicable to mobile devices.
final
-
motionTrackingControlOptions
→ ControlPosition?
-
The display position for the motion tracking control.
Web only
final
-
onCameraChangeListener
→ CameraChangeListener?
-
final
-
onCloseClickListener
→ CloseClickListener?
-
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
-
panControl
→ bool?
-
The enabled/disabled state of the pan control.
Web only
final
-
panControlOptions
→ ControlPosition?
-
The display position for the pan control.
Web only
final
-
panningGesturesEnabled
→ bool?
-
Sets whether the user is able to use panning gestures.
Web not supported
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
scrollwheel
→ bool?
-
If false, disables scrollwheel zooming in Street View. The scrollwheel is enabled by default.
Web only
final
-
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
-
visible
→ bool?
-
If true, the Street View panorama is visible on load.
Web only
final
-
zoomControl
→ bool?
-
The enabled/disabled state of the zoom control.
Web only
final
-
zoomControlOptions
→ ControlPosition?
-
The display position for the zoom control.
Web only
final
-
zoomGesturesEnabled
→ bool?
-
Sets whether the user is able to use zoom gestures.
Web not supported
final
Static Properties
-
createdCount
→ int
-
The created count of native street view.
no setter