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
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.
- extended_masked_text
Custom TextEditingControllers that provide masked text inputs for Flutter applications
50Compare
Works with
Packages commonly used together with signature: ones it builds on, ones built on it, and its own family.
- flutter_svgsignature depends on itRenders Scalable Vector Graphics (SVG 1.1) and precompiled vector graphics in Flutter.
- form_builder_extra_fieldsBuilt on signatureAdditional ready-made form input fields for the flutter_form_builder package
- senior_design_systemBuilt on signatureA Flutter UI kit providing Senior Design System components for mobile apps.
- research_packageBuilt on signatureA Flutter framework for obtaining informed consent, showing surveys and collecting results.