Skip to content
pubscout

flutter_map_line_editor

8.0.0, released 2 years ago by an unverified publisher

Basic line and polygon editor for flutter_map using drag markers

WASM-ready
$ flutter pub add flutter_map_line_editor
Source repository

What it does

Provides a PolyEditor widget that lets users add, move, and delete points on a flutter_map. It renders DragMarkers for each point and updates the map in real time.

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

Use it when

  • You need to edit polylines or polygons directly on a flutter_map.
  • You want a lightweight, no‑extra‑dependency editor for map drawing.

Skip it when

  • You are using Google Maps or another map plugin.
  • You need advanced drawing features like snapping or measurement.

Strengths

  • Easy to integrate with existing flutter_map projects.
  • Supports multiple flutter_map and dragmarker versions (v5‑v8).

Weaknesses

  • Only works with flutter_map; not compatible with Google Maps or other map packages.
  • Limited to basic line/polygon editing; no advanced features like snapping or measurement.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Add dependency, import package, create PolyEditor instance, add DragMarkers layer to FlutterMap.

```dart
import 'package:flutter_map_dragmarker/flutter_map_dragmarker.dart';
import 'package:flutter_map_line_editor/flutter_map_line_editor.dart';

var polyEditor = PolyEditor(
  points: testPolyline.points,
  pointIcon: Icon(Icons.crop_square, size: 23),
  intermediateIcon: Icon(Icons.lens, size: 15, color: Colors.grey),
  callbackRefresh: () => setState(() {}),
  addClosePathMarker: false,
);
```

Alternatives

Packages that do the same job and could replace flutter_map_line_editor.

  • re_editor

    A lightweight text and code editor widget for Flutter with syntax highlighting and folding.

  • code_forge

    A powerful text editor widget for Flutter handling 1M+ lines with LSP and AI completion.

  • perfect_freehand

    Turns input points into a polygon of outline points for drawing pressure-sensitive freehand lines.

  • markdown_editor_live

    WYSIWYG markdown editor widget with live syntax highlighting

Works with

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