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.
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.
- re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - flutter_advanced_drawer
Customizable advanced drawer widget for Flutter
77Compare - extended_text
An extension of Flutter's official Text widget for special inline content and custom overflow.
60Compare - material_new_shapes
Provides Material 3 shape definitions (e.g., RoundedPolygon, Cubic) for Flutter UI.
48Compare