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
textinside and an arrow pointing down, and returns it as aBitmapDescriptor. -
createLocationMarkerBitmap(
Color color, {double size = 30, double? pixelRatio}) → Future< BitmapDescriptor> -
Draws a LocationMarkerPainter of
size×sizelogical pixels incolorand returns it as aBitmapDescriptor. -
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
radiuswith a white inner circle andtextin the middle, and returns it as aBitmapDescriptor. -
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
pixelRatiois passed and the main view has no size yet (its metrics have not arrived, as ininitStateof the first screen), waits up totimeoutfor the metrics first.