SignatureOverlayWidget class

A widget that overlays a draggable, resizable, and pinchable signature image on top of a page.

Features:

  • Drag the entire signature area.
  • Resize using the bottom-right handle.
  • Pinch to zoom in/out.
  • Double-tap for custom actions.
Inheritance

Constructors

SignatureOverlayWidget.new({Key? key, required double left, required double top, required double width, required double height, required Image image, required ValueChanged<Offset> onDragDelta, required ValueChanged<Offset> onResizeDelta, VoidCallback? onPinchStart, ValueChanged<double>? onPinchUpdate, VoidCallback? onPinchEnd, VoidCallback? onDoubleTap})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
The current height of the signature area.
final
image Image
The signature image to render inside the area.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
left double
The left offset position of the signature.
final
onDoubleTap VoidCallback?
Called when the user double-taps the signature area.
final
onDragDelta ValueChanged<Offset>
Called when the main area is dragged.
final
onPinchEnd VoidCallback?
Called when the pinch gesture ends.
final
onPinchStart VoidCallback?
Called when a two-finger pinch starts over the signature area.
final
onPinchUpdate ValueChanged<double>?
Called with the current gesture's scale factor.
final
onResizeDelta ValueChanged<Offset>
Called when the bottom-right resize handle is dragged.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top double
The top offset position of the signature.
final
width double
The current width of the signature area.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
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, int wrapWidth = 65}) 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