signature_pad 1.0.0 signature_pad: ^1.0.0 copied to clipboard
An HTML 5 canvas signature library
signature_pad for Dart #
A Pure Dart implementation of Signature Pad by Szymon Nowak
Example #
import 'dart:html';
import 'package:signature_pad/signature_pad.dart`
main() {
var canvas = querySelector("canvas");
var opts = new SignaturePadOptions(minWidth: 1.5, maxWidth: 4.0, velocityFilterWeight: 0.7);
var signaturePad = new SignaturePad(canvas, opts);
}
see the example/
directory for a complete example. (e.g. pub serve example
)
Demo #
The example/
directory contains a Dart version of the JS demo