Scalebar constructor

const Scalebar({
  1. Key? key,
  2. Alignment alignment = Alignment.topRight,
  3. TextStyle? textStyle = const TextStyle(color: Color(0xFF000000), fontSize: 14),
  4. Color lineColor = const Color(0xFF000000),
  5. double strokeWidth = 2,
  6. double lineHeight = 5,
  7. EdgeInsets padding = const EdgeInsets.all(10),
  8. ScalebarLength length = ScalebarLength.m,
})

Create a new Scalebar.

This widget needs to be placed in the FlutterMap.children list.

Implementation

const Scalebar({
  super.key,
  this.alignment = Alignment.topRight,
  this.textStyle = const TextStyle(color: Color(0xFF000000), fontSize: 14),
  this.lineColor = const Color(0xFF000000),
  this.strokeWidth = 2,
  this.lineHeight = 5,
  this.padding = const EdgeInsets.all(10),
  this.length = ScalebarLength.m,
});