AttributionWidget constructor

const AttributionWidget({
  1. Key? key,
  2. required WidgetBuilder attributionBuilder,
  3. Alignment alignment = Alignment.bottomRight,
})

Attribution widget layer, usually placed in nonRotatedChildren

Can be anchored in a position of the map using alignment, defaulting to Alignment.bottomRight. Then pass attributionBuilder to build your custom attribution widget.

Alternatively, use the constructor defaultWidget to get a more classic styled attibution box.

Implementation

const AttributionWidget({
  Key? key,
  required this.attributionBuilder,
  this.alignment = Alignment.bottomRight,
}) : super(key: key);