NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #3742 most downloaded on pub.dev
A flutter package for drawing over images. Supports color, strokeWidth, different paintModes and exporting image.
Last release 3 years ago
no release in 18 months
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 23 of 23 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
24 releases · first in 2020
Nothing published for this version
Include fill on text delegate thanks to R4F43Lv.
Controller is exposed out of library. As a result of exposing, it has been renamed to ImagePainterController in order to avoid conflict with other Con
Controller is exposed out of library. As a result of exposing, it has been renamed to ImagePainterController in order to avoid conflict with other Controller name objects.width and height parameters are now required for ImagePainter.Signature() constructor.GlobalKey is no longer required to extract the image. It can be done through the ImagePainterController instance now./// Previously:
final _imageKey = GlobalKey<ImagePainterState>();
/// Provide key to the painter.
ImagePainter.network("https://sample_image.png",
key: _imageKey,scalable: true),
/// Export the image:
Uint8List byteArray = await _imageKey.currentState.exportImage();
/// Now you use `Uint8List` data and convert it to file.
File imgFile = new File('directoryPath/fileName.png');
imgFile.writeAsBytesSync(image);
/// Current:
final imagePainterController = ImagePainterController();
/// Provide controller to the painter.
ImagePainter.network("https://sample_image.png",
controller: imagePainterController,scalable: true),
///Export the image:
Uint8List byteArray = await imagePainterController.exportImage();
//Now you use `Uint8List` data and convert it to file.
File imgFile = new File('directoryPath/fileName.png');
imgFile.writeAsBytesSync(image);
initialPaintMode, initialStrokeWidth, initialColor has been removed. They can be set while initializing the controller.final ipController = ImagePainterController(
color: Colors.green,
strokeWidth: 4,
mode: PaintMode.line,
);
One column per quarter.
Added parameters for hardcoded values thanks to eduardokuhn.
Refactored unnecessary null calls.
Refactored controller to act as listenable for canvas repaint.
InteractiveViewer.- Minor improvements
Added text delegates thanks to avinath1998. Check example for implementation.
Fixed signature field initialization issue.
Added parameters for setting initial values.
Fixed scalable on ImagePainter.network constructor.
ImagePainter.network constructor.- Migrate to null safety. - Added initialPaintMode.
initialPaintMode.Generated dartdoc api documentation.
- Fix static analysis
Controller is no longer required to pass as the editor will handle it manually.
Breaking Changes:
Controller is no longer required to pass as the editor will handle it manually.PaintMode enums are now lowercases following dart conventions.Fixed issue with image parsing failing when used with file.
Smoother look for signature mode.
Added dynamic strokeMultiplier to compensate strokewidth for high resolution image.
PaintMode.none.ByteArray on memory constructor now returns itself without conversion back if no action is performed on it.
Breaking Change: Controller is immutable and can only be overridden with copyWith Constructor.
Fixed ImagePainter.memory constructor taking ui.Image while it should be taking Uint8List.
Added example for signature field.
Added documentation to the class and functions.
Initial version of image_painter library.
Initial version of image_painter library.
Your coding agent can read these notes before it upgrades. Set up the MCP server →