label_marker
1.0.1, released 5 years ago by scaria.dev
Adds labeled markers to Google Maps in Flutter apps.
WASM-ready
What it does
Provides a LabelMarker widget and an addLabelMarker() helper to place map markers with custom text labels. Allows background color and font style customization for the label.
AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need simple text labels on Google Maps markers without building custom marker images
- You want a quick way to add labeled markers using the existing google_maps_flutter plugin
Skip it when
- You require complex marker clustering or advanced map interactions
- You need platform‑independent map solutions beyond Google Maps
Strengths
- Easy integration with google_maps_flutter
- Customizable label appearance
- Minimal code to add labeled markers
Weaknesses
- Limited to Google Maps only
- No built‑in clustering or performance optimizations for many markers
- Requires manual setState after adding a marker
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
markers.addLabelMarker(LabelMarker(
label: "Hello",
markerId: MarkerId("id1"),
position: LatLng(10.0, 11.0),
backgroundColor: Colors.green,
)).then((_) => setState(() {}));Alternatives
Packages that do the same job and could replace label_marker.
- flutter_map
Offers an open‑source map solution with flexible marker customization and works with various map providers
90Compare
Works with
Packages commonly used together with label_marker: ones it builds on, ones built on it, and its own family.