diff --git a/google_maps/lib/main.dart b/google_maps/lib/main.dart index 2dd334417..d59e31a45 100644 --- a/google_maps/lib/main.dart +++ b/google_maps/lib/main.dart @@ -44,18 +44,18 @@ class _MyAppState extends State { backgroundColor: Colors.green[700], ), body: GoogleMap( - onMapCreated: _onMapCreated, - initialCameraPosition: CameraPosition( - target: _center, - zoom: 11.0, - ), - markers: { - // ignore: prefer_const_constructors - Marker( - markerId: const MarkerId('Sydney'), - position: const LatLng(-33.86, 151.20), - ) - }), + onMapCreated: _onMapCreated, + initialCameraPosition: CameraPosition( + target: _center, + zoom: 11.0, + ), + markers: { + const Marker( + markerId: MarkerId('Sydney'), + position: LatLng(-33.86, 151.20), + ) + }, + ), ), ); }