Flutter widget to allow users to sign with finger and export the result as image.
This is a very simple widget that allow drawing by finger on a widget and be able to get the image back.
For very basic usage, please check the example file here
Signature( color: Colors.black,// Color of the drawing path strokeWidth: 5.0, // with backgroundPainter: null, // Additional custom painter to draw stuff like watermark onSign: null, // Callback called on user pan drawing key: null, // key that allow you to provide a GlobalKey that'll let you retrieve the image once user has signed );
Once you retrieved the SignatureState from your GlobalKey, you'll have access to this API:
clear: allow you to clear the area to start again
getData: allow you to retrieve the image
hasPoints: to know if user has sign or not
points: to retrieve the list of points of the signature
A new Flutter project.
For help getting started with Flutter, view our online documentation.
Add this to your package's pubspec.yaml file:
dependencies: flutter_signature_pad: ^2.0.0+1
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|2.0.0+1||Mar 28, 2019|
|2.0.0||Mar 22, 2019|
|1.0.0||Feb 26, 2019|
|0.2.3||Jan 20, 2019|
|0.2.2||Dec 19, 2018|
|0.1.2||Oct 29, 2018|
|0.1.1||Oct 29, 2018|
|0.1.0||Oct 26, 2018|
|0.0.3||Oct 26, 2018|
|0.0.2||Aug 24, 2018|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jun 12, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
flutter format to format