handwriting_answer_pad library

A handwriting capture pad with a pluggable recognizer.

Classes

HandwritingAnswerPad
A handwriting capture pad: a drawing canvas plus undo / redo / clear and a "recognize" action that renders the strokes to an image and runs your recognizer, showing the recognized text.
HandwritingPadController
Programmatic control over a HandwritingAnswerPad.

Typedefs

HandwritingRecognizer = Future<String> Function(Uint8List pngBytes)
Turns handwriting (PNG bytes) into text. Bring your own implementation — an OCR service, a vision LLM, an on-device model. The pad never talks to a backend itself, so it stays decoupled and testable.