Reputation: 1247
Is Google Map street view available in Flutter? I know there is a plugin of Google Map but I couldn't find out if I can use Street view functionality.
Upvotes: 0
Views: 2766
Reputation: 31
I am the owner of flutter_google_street_view.
Flutter plugin flutter_google_street_view provides street view and support web, Android and iOS. Try it! The usage steps shown below.
Usage Steps:
Get an API key at https://cloud.google.com/maps-platform/.
Create FlutterGoogleStreetView widget and the sample code show below.
StreetViewController? streetViewController;
FlutterGoogleStreetView(
initPos: LatLng(25.0780892, 121.5753234),
onStreetViewCreated: (StreetViewController controller) async {
//save controller for late using
streetViewController = controller;
//change position by controller
controller.setPosition(position: LatLng(37.769263, -122.450727))
}
)
Done and control FlutterGoogleStreetView by streetViewController.
Upvotes: 3