buildLayer method
override this function for every map layers
Implementation
@override
Widget buildLayer(BuildContext context, MapState map) {
return Positioned.fill(
child: Align(
alignment: alignment,
child: Container(
margin: margin,
width: 52,
height: 52,
child: FittedBox(
child: FloatingActionButton(
heroTag: null,
backgroundColor: Colors.white,
child: icon ??
Icon(
Icons.location_searching,
color: Colors.blueGrey[600],
size: 25,
),
onPressed: () {
map.controller.locate(automove: true, toZoom: toZoom);
},
),
),
),
),
);
}