flutter_signature_view 1.0.0 flutter_signature_view: ^1.0.0 copied to clipboard
The signature plugin serve place to paint your signature and export it to many differences type to store.
Signature Widget library #
Signature widget library
Usage
import 'package:flutter_signature_view/flutter_signature_view.dart';
Simple init SignatureView
SignatureView _signatureView = SignatureView();
Init with optional params
SignatureView _signatureView = SignatureView(
backgroundColor: Colors.yellow,
penStyle: Paint()
..color = Colors.blue
..strokeCap = StrokeCap.round
..strokeWidth = 5.0,
onSigned: (data) {
print("On change $data");
},
);
Params
backgroundColor
- Color. Canvas background colordata
- String. Init your signature view with default data (it will generate after your signed from callback functiononSigned
penStyle
- Paint. Custom your Paint styleonSigned
- Function(String). Response list offset as String value. You can use it fordata
to render default signature view
Access data
- Get list offset as string value
_signatureView.exportListOffsetToString()
- Get data as
Bytes
_signatureView.exportBytes()
->async
function - Check empty
_signatureView.isEmpty
- Clear current signature
_signatureView.clear()
References