SignaturePreview class

Inheritance

Constructors

SignaturePreview({Key? key, void onSignCapture(Future<Uint8List> signImageBytes)?, bool autoClearOnDone = false, bool autoClearOnCancel = true, Color screenColor = Colors.white, Color signColor = primaryColor, double signStrokeWidth = 2, double signCapturePixelRatio = 1.0, bool enableTouchSign = false, bool enableSignGuide = false, bool enableActionButtons = true, double aspectRatio = DEVICE_ASPECT_RATIO})
A Widget that captures Signature with Scriptel Signature Pad device or touch

Properties

acceptedColor Color
no setter
aspectRatio double
Aspect ratio of signature pad, defaults to 240:64 which is scriptel signature pad's ratio
final
autoClearOnCancel bool
Automatically clears signature screen when cancel is pressed
final
autoClearOnDone bool
Automatically clears signature screen when done is pressed
final
enableActionButtons bool
Disables action buttons that show up in touch mode
final
enableSignGuide bool
Enables visual guide line for signing
final
enableTouchSign bool
Enables signature by touch, also enables
final
focusedColor Color
no setter
hashCode int
The hash code for this object.
no setterinherited
idleColor Color
no setter
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onSignCapture → void Function(Future<Uint8List> signImageBytes)?
Returns drawn signature as png bytes image, when done is pressed on scriptel pad or on touch
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenColor Color
The screen colour of signature screen
final
signCapturePixelRatio double
The pixel ratio of image to be rendered with onSignCapture
final
signColor Color
The ink colour of signature
final
signStrokeWidth double
The pen size of signature
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
cancelSignature() → void
When this method is called, the signature is registered as cancelled
captureSignature() Future<void>
When this method is called, the signature is registered as complete and eventually onSignCapture is called
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited