Builk_Draw_image

builk_image_draw is a Flutter package that allows you to draw lines on images or place pins on images. Support only android and ios

Installation

First, add Builk_Draw_image as a dependency in your pubspec.yaml file.

Android

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 25

To use builk_Draw_image in your Flutter project, add it to your pubspec.yaml file:

dependencies:
  builk_image_draw: any
BuilkImageDraw(
    deletePin: (value) {},
    undoComplete: () {},
    clearButton: () {},
    drawListView: [],
    drawStackBackList: [],
    controller: imageDrawControl,
    drawComplete: () { },
    loadPlanComplete: () {
      imageDrawControl.changeColor(Colors.red);
      imageDrawControl.selectPen(true);
    },
    drawImageSuccess: (value) { },
    imageUrl: 'https://wpmedia.roomsketcher.com/content/uploads/2022/01/06145940/What-is-a-floor-plan-with-dimensions.png',
  );

Widget

Title description
imageUrl image location or url
deletePin call back function when onClick remove icon on pin
undoComplete call back function when process undo event success
clearButton call back function when process clearButton event success
loadPlanComplete call back function when render imageUrl success
drawComplete call back function when render drawListView success
drawImageSuccess call back function when process drawing success
drawListView image list List of images to be placed on the image.
drawStackBackList image list List of images to be placed on the image. and can undo

BuilkImageDrawController

Title description
changeColor(Colors.red) set color pen
selectPen(true) drawing with a pen
selectHighlight(true) drawing with a Highlight
undo() undo from drawStackBackList
reRenderDraw() reRenderDraw
getImage() return image marge draw

Example

Flutter logo