Skip to content
pubscout

painter

2.0.0, released 5 years ago by eric-prokop-und-nils-wieler.de

A simple flutter widget to paint with your fingers, supporting colors, undo, and export to PNG.

WASM-ready
$ flutter pub add painter
Source repository

What it does

A simple flutter widget to paint with your fingers. It supports setting a background color, undo, and export to png.

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

Use it when

  • You need a basic drawing canvas widget in your app.
  • Users need to draw with their fingers and export the drawing as a PNG.

Skip it when

  • You need advanced image editing or multi-layer graphics software.
  • You need complex vector path manipulation.

Strengths

  • Supports undo and erase mode
  • Can export paintings as PNG
  • Allows checking if anything was drawn using PainterController.isEmpty

Weaknesses

  • After calling finish() on a PainterController you can't draw on this painting any more
  • Limited feature set beyond basic finger painting

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

PainterController controller = PainterController();
// Use Painter(controller) inside your widget tree

Alternatives

Packages that do the same job and could replace painter.