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 2024Releases
latest 24-
1.0.0-nullsafety.012 Jan 2021 pre-releaseNothing published for this version
-
0.7.129 Mar 2024 -
0.7.024 Mar 2024Release notes
Open source →Breaking Changes
Controlleris exposed out of library. As a result of exposing, it has been renamed toImagePainterControllerin order to avoid conflict with otherControllername objects.widthandheightparameters are now required forImagePainter.Signature()constructor.GlobalKeyis no longer required to extract the image. It can be done through theImagePainterControllerinstance 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,initialColorhas been removed. They can be set while initializing the controller.
final ipController = ImagePainterController( color: Colors.green, strokeWidth: 4, mode: PaintMode.line, ); -
0.6.129 Sep 2023Release notes
Open source →- Added parameters for hardcoded values thanks to eduardokuhn.
- Added the ability to hide controls thanks to ousvat.
-
0.6.008 Jul 2023Release notes
Open source →- 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.
-
0.5.014 Jan 2023Release notes
Open source →- Refactored controller to act as listenable for canvas repaint.
- Removed dependency on depreciated copy of
InteractiveViewer. - Removed vector math dependency.
- Bug fixes.
-
0.4.616 Jun 2022 -
0.4.524 Dec 2021Release notes
Open source →- Added text delegates thanks to avinath1998. Check example for implementation.
- Minor fixes.
-
0.4.412 Oct 2021Release notes
Open source →- Added parameters for setting initial values.
- Changed values are now emitted which can be saved for later use.
- Fixed signature field drawings.
-
0.4.4+112 Oct 2021 -
0.4.112 Oct 2021 -
0.4.026 Jun 2021 -
0.3.228 Mar 2021 -
0.3.128 Feb 2021 -
0.3.027 Feb 2021Release notes
Open source →Breaking Changes:
Controlleris 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
PaintModeenums are now lowercases following dart conventions.
-
0.2.012 Jan 2021Release notes
Open source →- Fixed issue with image parsing failing when used with file.
- Added exceptions to the image conversion failures.
- Fixed lint issues.
-
0.1.910 Jan 2021Release notes
Open source →- Smoother look for signature mode.
- Local InteractiveViewer for future flutter version issues.
-
0.1.827 Dec 2020Release notes
Open source →- 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.
-
0.1.622 Dec 2020Release notes
Open source →- ByteArray on memory constructor now returns itself without conversion back if no action is performed on it.
- Code refactors.
-
0.1.520 Dec 2020Release notes
Open source →- Breaking Change: Controller is immutable and can only be overridden with copyWith Constructor.
- Added PaintStyle in constructor.
- Code refactor.
-
0.1.416 Dec 2020Release notes
Open source →- Fixed ImagePainter.memory constructor taking ui.Image while it should be taking Uint8List.
-
0.1.313 Dec 2020Release notes
Open source →- Added signature field.
- Fixed scaling issues.
- Added example for signature field.
-
0.1.124 Nov 2020Release notes
Open source →- Added documentation to the class and functions.
- Improved docs and readMe.
-
0.1.022 Nov 2020Release notes
Open source →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.