PackageTrack
Sign in Get early access

image_painter

A flutter package for drawing over images. Supports color, strokeWidth, different paintModes and exporting image.

0.7.1 5.5K downloads/mo #3710 most downloaded on pub.dev yellowQ-software/yellowQ-Flutter-Image-Painter

What this package is like to depend on

Last release 2 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

0 releases in the last 12 months

see the full history below

Release timeline

24 releases · Nov 2020 to Mar 2024
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 24
  1. 1.0.0-nullsafety.0 12 Jan 2021 pre-release

    Nothing published for this version

  2. 0.7.1 29 Mar 2024
    Release notes
    • Include fill on text delegate thanks to R4F43Lv.
    Open source →
  3. 0.7.0 24 Mar 2024
    Release notes

    Breaking Changes

    • 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);
    
    
    • Parameters 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,
    );
    
    Open source →
  4. 0.6.1 29 Sep 2023
    Release notes
    • Added parameters for hardcoded values thanks to eduardokuhn.
    • Added the ability to hide controls thanks to ousvat.
    Open source →
  5. 0.6.0 08 Jul 2023
    Release notes
    • Added fill support.
    • Refactored lots of methods.
    • Added support for flutter web.
    • Refactored unnecessary null calls.
    • Refactored signature painter into it's own custompainter class.
    • Bug Fixes.
    Open source →
  6. 0.5.0 14 Jan 2023
    Release notes
    • Refactored controller to act as listenable for canvas repaint.
    • Removed dependency on depreciated copy of InteractiveViewer.
    • Removed vector math dependency.
    • Bug fixes.
    Open source →
  7. 0.4.6 16 Jun 2022
    Release notes
    • Minor improvements
    Open source →
  8. 0.4.5 24 Dec 2021
    Release notes
    • Added text delegates thanks to avinath1998. Check example for implementation.
    • Minor fixes.
    Open source →
  9. 0.4.4 12 Oct 2021
    Release notes
    • Added parameters for setting initial values.
    • Changed values are now emitted which can be saved for later use.
    • Fixed signature field drawings.
    Open source →
  10. 0.4.4+1 12 Oct 2021
    Release notes
    • Fixed signature field initialization issue.
    Open source →
  11. 0.4.1 12 Oct 2021
    Release notes
    • Fixed scalable on ImagePainter.network constructor.
    Open source →
  12. 0.4.0 26 Jun 2021
    Release notes
    • Migrate to null safety.
    • Added initialPaintMode.
    Open source →
  13. 0.3.2 28 Mar 2021
    Release notes
    • Bumped up dependencies.
    • Generated dartdoc api documentation.
    Open source →
  14. 0.3.1 28 Feb 2021
    Release notes
    • Fix static analysis
    Open source →
  15. 0.3.0 27 Feb 2021
    Release notes

    Breaking Changes:

    • Controller is no longer required to pass as the editor will handle it manually.
    • No need to configure controls options. Package provides control bar with all the needed features like change mode, color, undo, clear etc.
    • Text mode is available now. After adding text, it can be moved freely around until next operation.
    • The PaintMode enums are now lowercases following dart conventions.
    Open source →
  16. 0.2.0 12 Jan 2021
    Release notes
    • Fixed issue with image parsing failing when used with file.
    • Added exceptions to the image conversion failures.
    • Fixed lint issues.
    Open source →
  17. 0.1.9 10 Jan 2021
    Release notes
    • Smoother look for signature mode.
    • Local InteractiveViewer for future flutter version issues.
    Open source →
  18. 0.1.8 27 Dec 2020
    Release notes
    • Added dynamic strokeMultiplier to compensate strokewidth for high resolution image.
    • Pan or moving around image is available to use when mode is PaintMode.none.
    • Performance improvements and lint fixes.
    • Improved example.
    Open source →
  19. 0.1.6 22 Dec 2020
    Release notes
    • ByteArray on memory constructor now returns itself without conversion back if no action is performed on it.
    • Code refactors.
    Open source →
  20. 0.1.5 20 Dec 2020
    Release notes
    • Breaking Change: Controller is immutable and can only be overridden with copyWith Constructor.
    • Added PaintStyle in constructor.
    • Code refactor.
    Open source →
  21. 0.1.4 16 Dec 2020
    Release notes
    • Fixed ImagePainter.memory constructor taking ui.Image while it should be taking Uint8List.
    Open source →
  22. 0.1.3 13 Dec 2020
    Release notes
    • Added signature field.
    • Fixed scaling issues.
    • Added example for signature field.
    Open source →
  23. 0.1.1 24 Nov 2020
    Release notes
    • Added documentation to the class and functions.
    • Improved docs and readMe.
    Open source →
  24. 0.1.0 22 Nov 2020
    Release notes

    Initial version of image_painter library.

    • Includes 7 modes of paint styles i.e. Line, Box/Rectangle, Circle, FreeStyle or Signature, Arrow, Dash/Dotted Lines and Text
    • Includes controls for color and StrokeWidth.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive