v1.0.7easy_signature_pad
Bietet den Unterschriftsbereich für den Benutzer zum Unterschreiben und gibt die Unterschrift sowie das Base64-Bild zurück.
34Likes 140030-Tage-Downloads150Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Flutter Signature Pad ist das Flutter-Plugin, das Benutzern ermöglicht, auf der Leinwand zu zeichnen und die Unterschrift als Base64-Bild zu erhalten.
{"sdk":"flutter"}{"sdk":"flutter"}Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Easy Signature Pad is the flutter plugin that allows users to draw on the canvas and get the signature as Base64 image.
Preview
import 'package:easy_signature_pad/easy_signature_pad.dart';
// initialise the variable to store signature image
Uint8List signatureBytes;
// Use the SignaturePad Widget
EasySignaturePad(
onChanged: (image) {
setImage(image);
},
height: size.width ~/ 2,
width: size.width ~/ 1.5,
penColor: Colors.black,
strokeWidth: 1.0,
borderRadius: 10.0,
borderColor: Colors.white,
backgroundColor: Colors.white,
transparentImage: false,
transparentSignaturePad: false,
hideClearSignatureIcon: false,
),
// process the base64 image
void setImage(String bytes) async {
if (bytes.isNotEmpty) {
Uint8List convertedBytes = base64Decode(bytes);
setState(() {
signatureBytes = convertedBytes;
});
} else {
setState(() {
signatureBytes = null;
});
}
}