label_marker 0.0.2 copy "label_marker: ^0.0.2" to clipboard
label_marker: ^0.0.2 copied to clipboard

outdated

A package to create and use Google Maps marker with label text; the easiest and most efficient way.

A package to create and use Google Maps marker with label text; the easiest and most efficient way.

Pub Package MIT License

Features #

logo

Use this app in your Flutter app to:

  • Include marker with text in flutter app
  • Customise the background colour of the label
  • Customise the font style of the label
  • Implement any other functionality that you could do with normal markers

Getting started #

  1. Do the basic setup for having Google Maps
  2. Create a Set of normal markers (Set
  3. Import this package; label_marker, and call addLabelMarker() function on the Set of markers when you want to add a label marker.
  4. Pass a LabelMarker widget, (created by giving required parameters, ie, label, position and markerId) to the above function. (See example.)
  5. Remember to call setState using 'then' keyword on the addLabelMarker() function.

Usage #

markers.addLabelMarker(LabelMarker(
    label: "TextToShow",
    markerId: MarkerId("idString"),
    position: LatLng(10.0, 11.0),
    backgroundColor: Colors.green,
    )).then((value) {
    setState(() {});
    },
);

Additional information #

This was done alone and contributions are absolutely welcome. Any idea or suggestion to remove the need of setState after the function manually called, would be most appreciated.

Enjoy the package. Develop something beautiful.

80
likes
140
pub points
96%
popularity

Publisher

verified publisherscaria.dev

A package to create and use Google Maps marker with label text; the easiest and most efficient way.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_maps_flutter

More

Packages that depend on label_marker