Skip to content
pubscout

image_painter

0.7.1, released 3 years ago by an unverified publisher

Flutter package for drawing over images with support for multiple paint modes and exporting.

$ flutter pub add image_painter
Source repository

What it does

A Flutter widget that lets users draw over images using various shapes like lines, rectangles, circles, arrows, freehand, and text. It features an integrated control bar, undo/clear functionality, and allows exporting the final drawing as image bytes.

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

Use it when

  • You need a user to annotate or draw over network, asset, file, or memory images.
  • You want built-in paint tools and a control bar out of the box.

Skip it when

  • You only need to display images without any user drawing or annotation features.
  • You need advanced photo editing features like cropping or filters.

Strengths

  • Supports multiple paint modes including lines, shapes, freehand, and text.
  • Provides constructors for network, asset, file, and memory images.
  • Built-in controller for exporting images and managing states.

Weaknesses

  • Tested and working only on the Flutter stable channel.
  • Limited to basic drawing and text annotations over images.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
final imagePainterController = ImagePainterController();

ImagePainter.network(
  "https://sample_image.png",
  controller: imagePainterController,
  scalable: true,
);

Uint8List byteArray = await imagePainterController.exportImage();

Alternatives

Packages that do the same job and could replace image_painter.