flutter_signature 1.0.0
flutter_signature: ^1.0.0 copied to clipboard
A customizable signature pad widget for Flutter with support for PNG, JPG, and PDF export formats. Features configurable dimensions, stroke customization, undo/clear operations, and cross-platform com [...]
Changelog #
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 - 2025-08-02 #
Added #
- Initial release of flutter_signature package
SignaturePadwidget for capturing signatures with touch inputSignatureControllerfor managing signature state and operationsSignaturePaintercustom painter for rendering signature strokes- Export functionality for multiple formats:
- PNG format (lossless compression with transparency support)
- JPG format (lossy compression for smaller file sizes)
- PDF format (vector-based, scalable documents)
- Customizable signature pad dimensions (width and height)
- Stroke customization options:
- Stroke color configuration
- Stroke width adjustment
- Background color settings
- Signature editing capabilities:
- Clear all strokes
- Undo last stroke operation
SignatureUtilsutility class with helper methods:- Save signatures to device storage
- Get signature bytes for network operations
- Validate dimensions and generate filenames
SignatureExportFormatenum for type-safe format selection- Comprehensive example application demonstrating all features
- Full documentation with API reference and usage examples
- Support for all Flutter platforms (Android, iOS, Web, Windows, macOS, Linux)
Features #
- Smooth signature drawing with gesture detection
- Real-time signature rendering
- Memory-efficient stroke storage
- Customizable UI styling with BoxDecoration support
- Callback functions for signature events (start, change, end)
- Error handling for export operations
- Automatic file naming with timestamps
- Custom directory path support for file saving
Dependencies #
pdf: ^3.10.4for PDF generation and exportpath_provider: ^2.1.1for accessing device file system
Platform Requirements #
- Flutter SDK: >=3.0.0
- Dart SDK: >=3.0.0
- Minimum platform versions as per Flutter framework requirements