layers property

List<Widget> layers
final

A list of XLayers and/or PLayers to stack in this parent XL.

P Layers

A Layer in an XL. These by themselves are not Widgets.

Each Layer serves as a blueprint for transformations to its child within a parent XL, containing all the animatable properties.

These Playerss react primarily to pointer data; that is, either mouse hovers or touch inputs.

X Layers

Consider PLayer, but these XLayers react primarily to sensors data.

The xOffset, yOffset, xRotation, yRotation, and zRotationByX are reactionary to their respective axes when it comes to AccelerometerEvents.

The zRotationByGyro, however, is a secondary Z-axis "spin" factor whose core value is derived from GyroscopeEvents.

  • This means that samples from the gyroscope for Z-axis "spins" with this property, according to Normalization.samplingRate, will spike but return to 0 immediately once the device has finished "spinning".

Implementation

final List<Widget> layers;