FLUTTER ECOSYSTEM

imsujan276/easy_signature_pad

Flutter Signature Pad एक फ्लूटर प्लगइन है जो उपयोगकर्ताओं को कैनवास पर ड्रा करने और बेस64 छवि के रूप में हस्ताक्षर प्राप्त करने की अनुमति देता है।

easy_signature_pad प्रोजेक्ट कवर
Stars
2
Forks
3
अंतिम पुश (UTC)
25 जुल॰ 2024
प्रोजेक्ट स्थिति
सक्रिय
Sujan Gainju GitHub avatar
GITHUB User

Sujan Gainju ↗

Computer engineer, Flutter Developer, Freelancer

भाषाएँDartHTMLSwiftKotlinObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

Easy Signature Pad

Easy Signature Pad is the flutter plugin that allows users to draw on the canvas and get the signature as Base64 image.

Preview

Preview

Features

  • set canvas boundaries.
  • set drawing pen color, pen size, canvas border radius.
  • set callback function to the signature

Example

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;
      });
    }
  }

Contribution and support

  • If you want to contribute to the code, please create a pull request.
  • If you find any bug, please create an issue.