Why could it be that I get an error in options:
Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: GoogleMap(
onMapCreated: (GoogleMapController controller) {},
options: GoogleMapOptions(
cameraPosition: CameraPosition(
target: LatLng(37.4219999, -122.0862462),
),
),),
)
In pubspec.yaml
dev_dependencies:
flutter_test:
sdk: flutter
google_maps_flutter:
git:
url: git://github.com/flutter/plugins
path: packages/google_maps_flutter
And then enable the permissions in Android as in Ios.
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/>
There are many changes in that package because it is developer preview yet, apparently they already removed that Widget (or at least they made it private) try this: