Skip to content
pubscout

signature

6.4.0, released 4 months ago by 4q.eu

A Flutter plugin providing a performance-optimized signature canvas with custom styling and export.

WASM-ready
$ flutter pub add signature
Source repository

What it does

Provides a signature canvas widget and a controller for capturing user signatures. Allows customizing stroke width, pen color, and background, as well as exporting the drawing to PNG or SVG bytes, or restoring from previously saved points.

AI-written summary of version 6.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need users to draw signatures on screen in a Flutter application.
  • You need to export signatures as PNG or SVG images.
  • You need undo/redo functionality for canvas drawing.

Skip it when

  • You are building a complex freehand drawing or painting app requiring multi-layer support or brushes.
  • You do not need signature capture functionality.

Strengths

  • Performance optimized for a wide range of devices.
  • Supports exporting drawings to PNG and SVG formats.
  • Includes built-in undo, redo, and initial state restoration.

Weaknesses

  • Limited to single-layer signature input and basic canvas manipulation.
  • Requires manual wrapping in an Expanded widget inside flex layouts when used without explicit dimensions.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:signature/signature.dart';

final SignatureController _controller = SignatureController(
    penStrokeWidth: 5,
    penColor: Colors.red,
    exportBackgroundColor: Colors.blue,
);

var _signatureCanvas = Signature(
  controller: _controller,
  width: 300,
  height: 300,
  backgroundColor: Colors.lightBlueAccent,
);

Alternatives

Packages that do the same job and could replace signature.

Works with

Packages commonly used together with signature: ones it builds on, ones built on it, and its own family.