Skip to content

Commit

Permalink
feat!: add interactive Polygons, rework Polyline hitTest result…
Browse files Browse the repository at this point in the history
…, and deprecate/disable auto application of `TransulcentPointer` (#1822)
  • Loading branch information
JaffaKetchup authored Feb 14, 2024
1 parent f31829f commit 45cd08c
Show file tree
Hide file tree
Showing 12 changed files with 591 additions and 225 deletions.
11 changes: 10 additions & 1 deletion example/lib/pages/markers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,18 @@ class _MarkerPageState extends State<MarkerPage> {

Marker buildPin(LatLng point) => Marker(
point: point,
child: const Icon(Icons.location_pin, size: 60, color: Colors.black),
width: 60,
height: 60,
child: GestureDetector(
onTap: () => ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Tapped existing marker'),
duration: Duration(seconds: 1),
showCloseIcon: true,
),
),
child: const Icon(Icons.location_pin, size: 60, color: Colors.black),
),
);

@override
Expand Down
Loading

0 comments on commit 45cd08c

Please sign in to comment.