sensors library

Foil & XL

Classes

AcceleraxLayer
A Layer in an XL. These by themselves are not Widgets.
AutoXL
Deploy an AutoXL to simplify the setup of an XL stack.
Compensation
A small abstract class with static constant List<double>s that refer to specific device orientations according to sensor data subtractions/compensations.
Crinkle
Provide animation to a piece of Foil by wrapping it in a Roll with a specified Crinkle.
Dragging
A parameter class that pertains to PLayers and their parallax animation during an active drag or pointer hover event.
Foil
accelerometer-animated Foil Wrap a widget with new Foil, providing a rainbow shimmer that twinkles as the accelerometer moves.
Foils
Pre-rolled Gradients for deployment as Foil.gradient or anywhere else a Gradient is called for.
GradientTween
An interpolation between two Gradients.
LinearSteps
A 2D linear stepped "gradient".
Normalization
A parameter class that primarily pertain to XLayers for customizing the intake of SensorEvent data.
ParallaxLayer
A Layer in an XL. These by themselves are not Widgets.
ParallaxStack
A Widget that allows the definition of a stack of XLayers and/or PLayers and that will intrinsically animate them with a parallax effect based on sensor events (X) or pointer data (P).
PLayer
A Layer in an XL. These by themselves are not Widgets.
RadialSteps
A 2D radial stepping "gradient".
ReferencePosition
A simple wrapper for the x & y values of the XL's reference position as doubles between 0..1.
Roll
Provide a Roll for Foil.
RollState
Provide a Roll of Foil such that any descendents may obtain their Foil.gradient value from this definition.
Scalar
A Scalar provides an opportunity to scale axis-based double data. Default constructor takes named paramters per axis. Use Scalar.xy as a shortcut to only provide positional double values.
Sheet
A wrapper for the parameters that pertain to an Animated/Container.
SweepSteps
A 2D stepping sweep "gradient".
TranslateGradient
This class's transform method considers TextDirection and will consider positive values as translation to the right if ltr and translate left for positive values if rtl.
XL
A Widget that allows the definition of a stack of XLayers and/or PLayers and that will intrinsically animate them with a parallax effect based on sensor events (X) or pointer data (P).
XLayer
A Layer in an XL. These by themselves are not Widgets.

Extensions

GradientUtils on Gradient
Offers copyWith method to make duplicate Gradients.
LinearGradientUtils on LinearGradient
Offers copyWith method to make duplicate Gradients.
RadialGradientUtils on RadialGradient
Offers copyWith method to make duplicate Gradients.
SweepGradientUtils on SweepGradient
Offers copyWith method to make duplicate Gradients.

Typedefs

TransformGradient = GradientTransform Function(double x, double y)
The definition of a Function that positionally accepts a
double x then double y and returns a GradientTransform,
such as the default for this package: TranslateGradient.