sensors library
Foil
& XL
Classes
- AcceleraxLayer
-
A
Layer
in anXL
. These by themselves are notWidget
s. - AutoXL
-
Deploy an
AutoXL
to simplify the setup of an XL stack. - Compensation
-
A small abstract class with
static
constantList<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 aRoll
with a specifiedCrinkle
. - Dragging
-
A parameter class that pertains to
PLayer
s 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
Gradient
s for deployment asFoil.gradient
or anywhere else aGradient
is called for. - GradientTween
-
An interpolation between two
Gradient
s. - LinearSteps
- A 2D linear stepped "gradient".
- Normalization
-
A parameter class that primarily pertain to
XLayer
s for customizing the intake ofSensorEvent
data. - ParallaxLayer
-
A
Layer
in anXL
. These by themselves are notWidget
s. - ParallaxStack
-
A
Widget
that allows the definition of a stack ofXLayer
s and/orPLayer
s and that will intrinsically animate them with a parallax effect based on sensor events (X
) or pointer data (P
). - PLayer
-
A
Layer
in anXL
. These by themselves are notWidget
s. - RadialSteps
- A 2D radial stepping "gradient".
- ReferencePosition
-
A simple wrapper for the
x
&y
values of theXL
's reference position as doubles between0..1
. - Roll
-
Provide a
Roll
forFoil
. - RollState
-
Provide a
Roll
ofFoil
such that any descendents may obtain theirFoil.gradient
value from this definition. - Scalar
-
A
Scalar
provides an opportunity to scale axis-baseddouble
data. Default constructor takes named paramters per axis. Use Scalar.xy as a shortcut to only provide positionaldouble
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 ifrtl
. - XL
-
A
Widget
that allows the definition of a stack ofXLayer
s and/orPLayer
s and that will intrinsically animate them with a parallax effect based on sensor events (X
) or pointer data (P
). - XLayer
-
A
Layer
in anXL
. These by themselves are notWidget
s.
Extensions
- GradientUtils on Gradient
-
Offers copyWith method to make duplicate
Gradient
s. - LinearGradientUtils on LinearGradient
-
Offers copyWith method to make duplicate
Gradient
s. - RadialGradientUtils on RadialGradient
-
Offers copyWith method to make duplicate
Gradient
s. - SweepGradientUtils on SweepGradient
-
Offers copyWith method to make duplicate
Gradient
s.
Typedefs
- TransformGradient = GradientTransform Function(double x, double y)
-
The definition of a
Function
that positionally accepts a
double x
thendouble y
and returns a GradientTransform,
such as the default for this package: TranslateGradient.