搜尋套件、儲存庫與 APP 分類

easy_signature_pad 封面
套件詳情v1.0.7

easy_signature_pad

提供使用者簽名的區域,並回傳簽名與Base64影像。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2350
喜歡數
34
Pub 分數
150

安裝套件

flutter pub add easy_signature_pad

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

EasySignaturePad 是一個 Flutter 套件,提供直覺式的簽名輸入區域,讓使用者可以直接在螢幕上繪製簽名。它會將簽名捕捉為畫布影像,並以 Base64 格式回傳,方便儲存或傳輸。此套件設計簡潔,支援跨平台相容性,適用於 Android、iOS、Web、macOS、Windows 與 Linux。該套件非常適合需要使用者簽名的表單、驗證與數位文件工作流程。

適用情境

  • 數位表單提交
  • 使用者身分驗證
  • 電子簽名收集
  • 文件審核流程
  • 線上合約簽署

主要特色

  • 簡單的 API 結合
  • Base64 圖像輸出
  • 跨平台支援
  • 可自定的描邊樣式
  • 即時簽名捕獲

適合對象

  • 需要電子簽名的應用程式開發人員
  • 需要使用者同意的表單
  • 帶有數位簽章的行動與網路應用程式
  • 教育或法律文件平台
  • 具有工作流審批的業務應用

使用建議

  • 某些平台需要使用者權限才能繪製
  • Base64 輸出可能會增加有效負載大小
  • 高級樣式自訂選項有限
  • 無內建簽名驗證
  • 未針對高解析度顯示器進行優化,需要額外設定

原始 README

以下為關聯原始碼儲存庫的 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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。