stylet library

Cross-platform, high-fidelity stylus input for Flutter.

Classes

Stylet
Coordinates portable Flutter pointer data with native stylus extensions.
StyletEvent
Base type for every event emitted by Stylet.
StyletListener
Normalizes pointer events for a subtree and exposes auxiliary native events.
StylusActionEvent
A double-tap or squeeze reported by a supported stylus.
StylusCapabilities
Describes the stylus features available through an input backend.
StylusCorrectionEvent
Definitive values replacing properties in an earlier estimated sample.
StylusDevice
Describes one native tablet, tool, or tablet pad.
StylusDeviceEvent
A native tablet, tool, or pad connection and metadata change.
StylusMotionEvent
A normalized high-fidelity sample from a stylus pointer.
StylusPose
A stylus pose attached to a body gesture such as squeeze.
StylusPredictionEvent
A replaceable trajectory predicted from the latest real motion samples.
TabletPadEvent
A button, ring, strip, dial, or mode event from a graphics-tablet pad.

Enums

StyletEventSource
Identifies where a normalized event obtained its data.
StylusAction
Identifies a discrete interaction performed on a stylus body.
StylusActionPhase
Describes the lifecycle stage of a stylus body interaction.
StylusDeviceKind
Identifies the native object described by a device event.
StylusDevicePhase
Describes a change in a native input device's lifetime.
StylusFeature
A stylus input feature that a backend or device can report.
StylusPhase
Describes the lifecycle stage of a stylus pointer.
StylusPreferredAction
System-configured behavior associated with a stylus body interaction.
StylusSampleProperty
Identifies a motion value that can be estimated and corrected later.
StylusTool
Identifies which end or kind of tablet tool produced an event.
TabletPadControl
Identifies a physical control on a graphics-tablet pad.
TabletPadPhase
Describes the lifecycle of a tablet-pad interaction.

Typedefs

StylusActionCallback = void Function(StylusActionEvent event)
Signature for callbacks receiving a stylus body interaction.
StylusCorrectionCallback = void Function(StylusCorrectionEvent event)
Signature for callbacks receiving an estimated-property correction.
StylusMotionCallback = void Function(StylusMotionEvent event)
Signature for callbacks receiving normalized stylus motion.
StylusPredictionCallback = void Function(StylusPredictionEvent event)
Signature for callbacks receiving a replaceable predicted trajectory.