sensors library
Foil & XL
Classes
- AcceleraxLayer
-
A
Layerin anXL. These by themselves are notWidgets. - AutoXL
-
Deploy an
AutoXLto simplify the setup of an XL stack. - Compensation
-
A small abstract class with
staticconstantList<double>s that refer to specific device orientations according to sensor data subtractions/compensations. - Crinkle
-
Provide animation to a piece of
Foilby wrapping it in aRollwith a specifiedCrinkle. - Dragging
-
A parameter class that pertains to
PLayers and their parallax animation during an active drag or pointer hover event. - Foil
-
Wrap a widget with new Foil, providing a rainbow shimmer that twinkles as the accelerometer moves. - Foils
-
Pre-rolled
Gradients for deployment asFoil.gradientor anywhere else aGradientis 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 ofSensorEventdata. - ParallaxLayer
-
A
Layerin anXL. These by themselves are notWidgets. - ParallaxStack
-
A
Widgetthat allows the definition of a stack ofXLayers and/orPLayers and that will intrinsically animate them with a parallax effect based on sensor events (X) or pointer data (P). - PLayer
-
A
Layerin anXL. These by themselves are notWidgets. - RadialSteps
- A 2D radial stepping "gradient".
- ReferencePosition
-
A simple wrapper for the
x&yvalues of theXL's reference position as doubles between0..1. - Roll
-
Provide a
RollforFoil. - RollState
-
Provide a
RollofFoilsuch that any descendents may obtain theirFoil.gradientvalue from this definition. - Scalar
-
A
Scalarprovides an opportunity to scale axis-baseddoubledata. Default constructor takes named paramters per axis. Use Scalar.xy as a shortcut to only provide positionaldoublevalues. - 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
ltrand translate left for positive values ifrtl. - XL
-
A
Widgetthat allows the definition of a stack ofXLayers and/orPLayers and that will intrinsically animate them with a parallax effect based on sensor events (X) or pointer data (P). - XLayer
-
A
Layerin anXL. These by themselves are notWidgets.
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
Functionthat positionally accepts a
double xthendouble yand returns a GradientTransform,
such as the default for this package: TranslateGradient.