Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

image_painter (implementation of painting)

a flutter implementation of painting over image.

implementation of painting

features

  • seven available paint modes. line, box/rectangle, circle, freestyle/signature, dotted line, arrow and text.
  • four constructors for adding image from network url, asset image, image from file and from memory.
  • controls from constructors like strokewidth and colors.
  • ability to undo and clear drawings.

[note]
tested and working only on flutter stable channel. please make sure you are on stable channel of flutter before using the package.

getting started

in your library add the following import:

import 'package:image_painter/image_painter.dart';

using the library

basic usage of the libary:

  • imagepainter.network: painting over image from network url.
final _imagekey = globalkey<imagepainterstate>();
//provide controller 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);

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top