Ooto
Ooto

Reputation: 1247

Flutter: Is Google Map street view available in Flutter?

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

Answers (1)

MrNewkind
MrNewkind

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:

  1. Get an API key at https://cloud.google.com/maps-platform/.

  2. Specify your API key to your code.(Web, Android, iOS)

  3. 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))
     }
    )
    
  4. Done and control FlutterGoogleStreetView by streetViewController.

Upvotes: 3

Related Questions