-
-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Labels
feature requestNew feature or requestNew feature or request
Description
Custom Shape Drawing: The ability to freely draw custom shapes (lines, rectangles, circles, etc.) directly on the PDF page. This would allow users to highlight specific areas or add annotations for better clarity.
i have tried doing this but I have to do it more smooth...

onInteractionUpdate: (details) {
setState(() {
points.add(details.localFocalPoint);
});
},
onInteractionStart: (details) {
setState(() {
points.add(details.localFocalPoint);
});
},
pagePaintCallbacks: [
textSearcher.pageTextMatchPaintCallback,
_paintMarkers,
penpointer,
],
final List<Offset> points = [];
penpointer(Canvas canvas, Rect pageRect, PdfPage page) {
Paint paint = Paint()
..color = Colors.black
..strokeCap = StrokeCap.round
..strokeWidth = 5.0;
for (Offset point in points) {
canvas.drawCircle(point, 5.0, paint); // Draw a circle with radius 5
}
// }
}
base on pages to page and scroll issue to fix ...... and also keep track for undo...
AnaxAndrade
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or request