Search packages, repositories and app categories

easy_signature_pad cover
Package detailsv1.0.7

easy_signature_pad

Provides the signature area for the user to sign and returns the signature and Base64 image.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
2.4K
Likes
34
Pub points
150

Install package

flutter pub add easy_signature_pad

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

EasySignaturePad is a Flutter package that provides an intuitive signature input area, allowing users to draw their signatures directly on the screen. It captures the signature as a canvas image and returns it in Base64 format for easy storage or transmission. Designed for simplicity and cross-platform compatibility, it supports Android, iOS, Web, macOS, Windows, and Linux. The package is ideal for forms, authentication, and digital document workflows where user signatures are required.

Use cases

  • Digital form submissions
  • User authentication
  • E-signature collection
  • Document approval workflows
  • Online contract signing

Key features

  • Simple API integration
  • Base64 image output
  • Cross-platform support
  • Customizable stroke style
  • Real-time signature capture

Suitable for

  • App developers needing e-signatures
  • Forms requiring user consent
  • Mobile and web applications with digital signing
  • Educational or legal document platforms
  • Business apps with workflow approvals

Considerations

  • Requires user permission for drawing on some platforms
  • Base64 output may increase payload size
  • Limited customization options for advanced styling
  • No built-in signature validation
  • Not optimized for high-resolution displays without additional configuration

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Source repository

Projects using this package

No data available yet.