extension/marker_crafter_add_extension library

Kept so 1.x imports keep compiling; import package:marker_crafter/marker_crafter.dart instead.

Classes

LocationMarkerPainter
Paints a filled circle with two short "antennas" pointing up-left and up-right, sized so the whole shape fits in the canvas with the circle centered.
MarkerCrafter
Describes a marker whose icon is drawn by Marker Crafter.

Extensions

MarkerCrafterSetExtension on Set<Marker>
Adds Marker Crafter markers to a set of Markers.

Constants

defaultRingColor → const Color
Default background color of createRingMarkerBitmap.

Functions

createLabelMarkerBitmap(String text, {TextStyle? textStyle, Color backgroundColor = Colors.blueAccent, double maxWidth = double.infinity, int? maxLines, TextScaler textScaler = TextScaler.noScaling, TextDirection textDirection = TextDirection.ltr, double? pixelRatio}) → Future<BitmapDescriptor>
Draws a rounded "speech bubble" with text inside and an arrow pointing down, and returns it as a BitmapDescriptor.
createLocationMarkerBitmap(Color color, {double size = 30, double? pixelRatio}) → Future<BitmapDescriptor>
Draws a LocationMarkerPainter of size × size logical pixels in color and returns it as a BitmapDescriptor.
createRingMarkerBitmap(String text, {double radius = 20, TextStyle? textStyle, Color backgroundColor = defaultRingColor, TextScaler textScaler = TextScaler.noScaling, TextDirection textDirection = TextDirection.ltr, double? pixelRatio}) → Future<BitmapDescriptor>
Draws a filled circle of radius with a white inner circle and text in the middle, and returns it as a BitmapDescriptor.
resolvePixelRatio([double? pixelRatio]) → double
The pixel ratio used when none is passed: the one of the app's main view, or 1.0 when there is none (for example in a background isolate).
waitForPixelRatio([double? pixelRatio, Duration timeout = const Duration(seconds: 2)]) → Future<double>
Like resolvePixelRatio, but when no pixelRatio is passed and the main view has no size yet (its metrics have not arrived, as in initState of the first screen), waits up to timeout for the metrics first.