Skip to content
pubscout

flutter_painter

2.1.0, released 4 months ago by an unverified publisher

A Flutter widget for drawing scribbles, text, shapes and images on a canvas.

WASM-ready
$ flutter pub add flutter_painter
Source repository

What it does

Provides a PainterController and FlutterPainter widget to draw free‑style strokes, add text, shapes, and images, and manipulate them (move, scale, rotate). Supports undo/redo, JSON save/restore and image export.

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

Use it when

  • You need an interactive drawing surface inside a Flutter app
  • You want to let users annotate images or create sketches with text and shapes

Skip it when

  • You require vector‑based export or advanced photo‑editing features
  • You need a lightweight widget for simple static images

Strengths

  • Rich set of drawable types (free‑style, text, shapes, images)
  • Undo/redo and JSON persistence
  • Configurable callbacks and controller‑driven API

Weaknesses

  • No vector export or advanced image processing
  • May add overhead for simple use cases

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
class ExampleWidget extends StatefulWidget {const ExampleWidget({Key? key}): super(key:key);} class _ExampleWidgetState extends State<ExampleWidget> {final PainterController controller = PainterController(); @override Widget build(BuildContext context) {return SizedBox(width:300,height:300,child:FlutterPainter(controller:controller));}}

Alternatives

Packages that do the same job and could replace flutter_painter.