v1.0.7easy_signature_pad
ユーザーが署名するための領域を提供し、署名とBase64形式の画像を返します。
34いいね 235030日間ダウンロード150Pub ポイント
AndroidiOSWebmacOSWindowsLinux
Flutter Signature Pad は、ユーザーがキャンバス上で描画し、Base64 イメージとして署名を取得できる Flutter プラグインです。
以下は英語原文のスナップショットです。最新版は 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 ↗