flutter_map_supercluster 4.0.0 flutter_map_supercluster: ^4.0.0 copied to clipboard
Very fast Marker clustering for flutter_map. Supports efficient adding/removing of Markers.
import 'package:flutter/material.dart';
import 'package:flutter_map_supercluster_example/immutable_clustering_page.dart';
import 'package:flutter_map_supercluster_example/mutable_clustering_page.dart';
import 'package:flutter_map_supercluster_example/normal_and_clustered_markers_with_popups_page.dart';
import 'package:flutter_map_supercluster_example/too_close_to_uncluster_page.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Map Supercluster Examples',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MutableClusteringPage(),
routes: <String, WidgetBuilder>{
MutableClusteringPage.route: (context) => const MutableClusteringPage(),
ClusteringManyMarkersPage.route: (context) =>
const ClusteringManyMarkersPage(),
TooCloseToUnclusterPage.route: (context) =>
const TooCloseToUnclusterPage(),
NormalAndClusteredMarkersWithPopups.route: (context) =>
const NormalAndClusteredMarkersWithPopups(),
},
);
}
}