v1.0.7easy_signature_pad
उपयोगकर्ता के लिए हस्ताक्षर क्षेत्र प्रदान करता है और हस्ताक्षर और Base64 छवि लौटाता है।
34लाइक 1.4 हज़ार30-दिन डाउनलोड150Pub अंक
AndroidiOSWebmacOSWindowsLinux
Flutter Signature Pad एक फ्लूटर प्लगइन है जो उपयोगकर्ताओं को कैनवास पर ड्रा करने और बेस64 छवि के रूप में हस्ताक्षर प्राप्त करने की अनुमति देता है।
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री 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;
});
}
}