ParallaxLayer constructor
const
ParallaxLayer({})
A Layer
in an XL
. These by themselves are not Widget
s.
Each Layer
serves as a blueprint for transformations to its child
within a parent XL
, containing all the animatable properties.
These Players
s react primarily to pointer data;
that is, either mouse hovers or touch inputs.
Implementation
const ParallaxLayer({
Key? key,
double xOffset = 0.0,
double yOffset = 0.0,
double xRotation = 0.0,
double yRotation = 0.0,
double zRotation = 0.0,
bool enable3d = true,
double dimensionalOffset = 0.001,
Offset offset = const Offset(0, 0),
Widget? child,
}) : super(
key: key,
xOffset: xOffset,
yOffset: yOffset,
xRotation: xRotation,
yRotation: yRotation,
zRotation: zRotation,
enable3d: enable3d,
dimensionalOffset: dimensionalOffset,
offset: offset,
child: child ?? const SizedBox(),
);