v1.0.7easy_signature_pad
उपयोगकर्ता के लिए हस्ताक्षर क्षेत्र प्रदान करता है और हस्ताक्षर और Base64 छवि लौटाता है।
34लाइक 2.4 हज़ार30-दिन डाउनलोड150Pub अंक
AndroidiOSWebmacOSWindowsLinux
Flutter Signature Pad एक फ्लूटर प्लगइन है जो उपयोगकर्ताओं को कैनवास पर ड्रा करने और बेस64 छवि के रूप में हस्ताक्षर प्राप्त करने की अनुमति देता है।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Easy Signature Pad is the flutter plugin that allows users to draw on the canvas and get the signature as Base64 image.
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;
});
}
}
निर्भरता सूची 2 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗