Skip to content
pubscout

flutter_map_polywidget

1.0.1, released 3 years ago by an unverified publisher

A flutter_map plugin for displaying custom widgets on specific geographic areas of the map.

$ flutter pub add flutter_map_polywidget
Source repository

What it does

It allows developers to place any custom Flutter widget onto a flutter_map instance by specifying geographic coordinates, dimensions in meters, or corner points. Widgets can be constrained, made clickable, and configured to rotate or maintain fixed orientations.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to render custom Flutter widgets overlaid on specific geographic locations inside a flutter_map.
  • You want widgets to scale and optionally rotate based on map zoom levels and orientation settings.

Skip it when

  • You are using Google Maps instead of flutter_map.
  • You only need standard map markers and pins rather than complex layout widgets.

Strengths

  • Enables placement of arbitrary widgets on maps using geographic bounds or center points.
  • Supports size constraints and orientation forcing (portrait or landscape).
  • Widgets can be interactive and clickable.

Weaknesses

  • Tied strictly to `flutter_map`.
  • Performance may depend on the complexity and number of rendered widget overlays.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Requires adding the package dependency and integrating `PolyWidgetLayer` into your `FlutterMap` widget tree.

FlutterMap(
  children: [
    PolyWidgetLayer(
      polyWidgets: [
        PolyWidget(
          center: LatLng(50.933465, 6.875109),
          widthInMeters: 100,
          heightInMeters: 200,
          angle: 90,
          child: Text('Custom Widget'),
        ),
      ],
    ),
  ],
)

Alternatives

Packages that do the same job and could replace flutter_map_polywidget.

Works with

Packages commonly used together with flutter_map_polywidget: ones it builds on, ones built on it, and its own family.