Scalebar constructor
const
Scalebar({
- Key? key,
- Alignment alignment = Alignment.topRight,
- TextStyle? textStyle = const TextStyle(color: Color(0xFF000000), fontSize: 14),
- Color lineColor = const Color(0xFF000000),
- double strokeWidth = 2,
- double lineHeight = 5,
- EdgeInsets padding = const EdgeInsets.all(10),
- 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,
});