Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Initial cleanup and annotation
  • Loading branch information
stuartmorgan-g committed Feb 15, 2021
commit 74af2db81e111a83521826f2ad01de22da1aaae4
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,13 @@ class MarkerIconsBodyState extends State<MarkerIconsBody> {
}

Set<Marker> _createMarker() {
// TODO(iskakaushik): Remove this when collection literals makes it to stable.
// https://github.com/flutter/flutter/issues/28312
// ignore: prefer_collection_literals
return <Marker>[
return <Marker>{
Marker(
markerId: MarkerId("marker_1"),
position: _kMapCenter,
icon: _markerIcon,
),
].toSet();
};
}

Future<void> _createMarkerImageFromAsset(BuildContext context) async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,12 @@ class ScrollingMapBody extends StatelessWidget {
target: center,
zoom: 11.0,
),
gestureRecognizers:
// TODO(iskakaushik): Remove this when collection literals makes it to stable.
// https://github.com/flutter/flutter/issues/28312
// ignore: prefer_collection_literals
<Factory<OneSequenceGestureRecognizer>>[
gestureRecognizers: <
Factory<OneSequenceGestureRecognizer>>{
Factory<OneSequenceGestureRecognizer>(
() => EagerGestureRecognizer(),
),
].toSet(),
},
),
),
),
Expand Down Expand Up @@ -84,34 +81,25 @@ class ScrollingMapBody extends StatelessWidget {
target: center,
zoom: 11.0,
),
markers:
// TODO(iskakaushik): Remove this when collection literals makes it to stable.
// https://github.com/flutter/flutter/issues/28312
// ignore: prefer_collection_literals
Set<Marker>.of(
<Marker>[
Marker(
markerId: MarkerId("test_marker_id"),
position: LatLng(
center.latitude,
center.longitude,
),
infoWindow: const InfoWindow(
title: 'An interesting location',
snippet: '*',
),
)
],
),
gestureRecognizers:
// TODO(iskakaushik): Remove this when collection literals makes it to stable.
// https://github.com/flutter/flutter/issues/28312
// ignore: prefer_collection_literals
<Factory<OneSequenceGestureRecognizer>>[
markers: <Marker>{
Marker(
markerId: MarkerId("test_marker_id"),
position: LatLng(
center.latitude,
center.longitude,
),
infoWindow: const InfoWindow(
title: 'An interesting location',
snippet: '*',
),
),
},
gestureRecognizers: <
Factory<OneSequenceGestureRecognizer>>{
Factory<OneSequenceGestureRecognizer>(
() => ScaleGestureRecognizer(),
),
].toSet(),
},
),
),
),
Expand Down
Loading