Skip to content

Commit 2a68142

Browse files
committed
feat: removing unused code from clustering example
1 parent 51f6bac commit 2a68142

1 file changed

Lines changed: 0 additions & 87 deletions

File tree

example/lib/pages/clustering.dart

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -234,93 +234,6 @@ class _ClusteringPageState extends ExamplePageState<ClusteringPage> {
234234
setState(() {});
235235
}
236236

237-
@override
238-
Widget buildOverlayContent(BuildContext context) {
239-
return Column(
240-
mainAxisSize: MainAxisSize.min,
241-
children: <Widget>[
242-
Padding(
243-
padding: const EdgeInsets.symmetric(horizontal: 8.0),
244-
child: Column(
245-
children: <Widget>[
246-
Row(
247-
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
248-
children: <Widget>[
249-
Expanded(
250-
child: ElevatedButton(
251-
onPressed:
252-
_clusterManagers.length >= _clusterManagerMaxCount
253-
? null
254-
: _addClusterManager,
255-
child: const Text('Add cluster manager'),
256-
),
257-
),
258-
const SizedBox(width: 8),
259-
Expanded(
260-
child: ElevatedButton(
261-
onPressed:
262-
_clusterManagers.isEmpty
263-
? null
264-
: () => _removeClusterManager(
265-
_clusterManagers.values.last,
266-
),
267-
child: const Text('Remove cluster manager'),
268-
),
269-
),
270-
],
271-
),
272-
const SizedBox(height: 8),
273-
Wrap(
274-
alignment: WrapAlignment.spaceEvenly,
275-
spacing: 8,
276-
runSpacing: 8,
277-
children: <Widget>[
278-
for (final MapEntry<String, ClusterManager> clusterEntry
279-
in _clusterManagers.entries)
280-
ElevatedButton(
281-
onPressed: () => _addMarkersToCluster(clusterEntry.value),
282-
child: Text('Add markers to ${clusterEntry.key}'),
283-
),
284-
],
285-
),
286-
const SizedBox(height: 8),
287-
Row(
288-
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
289-
children: <Widget>[
290-
Expanded(
291-
child: ElevatedButton(
292-
onPressed:
293-
_selectedMarkerId == null
294-
? null
295-
: _removeSelectedMarker,
296-
child: const Text('Remove selected marker'),
297-
),
298-
),
299-
const SizedBox(width: 8),
300-
Expanded(
301-
child: ElevatedButton(
302-
onPressed: _markers.isEmpty ? null : _changeMarkersAlpha,
303-
child: const Text('Change all markers alpha'),
304-
),
305-
),
306-
],
307-
),
308-
if (_lastCluster != null)
309-
Padding(
310-
padding: const EdgeInsets.all(10),
311-
child: Text(
312-
'Last cluster clicked:\n'
313-
'${_lastCluster!.count} markers at ${_lastCluster!.position}',
314-
textAlign: TextAlign.center,
315-
),
316-
),
317-
],
318-
),
319-
),
320-
],
321-
);
322-
}
323-
324237
@override
325238
Widget build(BuildContext context) {
326239
return Scaffold(

0 commit comments

Comments
 (0)