AutoXL class
Deploy an AutoXL
to simplify the setup of an XL stack.
Provide layers
, receive XL
; simple as that.
- Inheritance
Constructors
-
AutoXL({Key? key, double depthFactor = 20.0, required List<
Widget> layers, bool supportsPointer = true, bool supportsSensors = true, int depth = -1, Duration duration = const Duration(milliseconds: 200), Curve curve = Curves.ease, Duration drag = const Duration(milliseconds: 100)}) -
Deploy an
AutoXL
to simplify the setup of an XL stack.const -
AutoXL.deep({Key? key, required List<
Widget> layers, bool supportsPointer = true, bool supportsSensors = true, int depth = -1, Duration duration = const Duration(milliseconds: 200), Curve curve = Curves.ease, Duration drag = const Duration(milliseconds: 100)}) -
AutoXL.deep
is intended to translate and rotate greatly in its place to represent pointer hovers or accelerometer data.const -
AutoXL.pane({Key? key, required List<
Widget> layers, bool supportsPointer = true, bool supportsSensors = false, int depth = 2, Duration duration = const Duration(milliseconds: 100), Curve curve = Curves.ease, Duration drag = const Duration(milliseconds: 40)}) -
AutoXL.pane
is intended to be mostly stationary but rotate in its place to represent pointer hovers or accelerometer data.const -
AutoXL.wiggler({Key? key, required List<
Widget> layers, bool supportsPointer = true, bool supportsSensors = true, int depth = -1, Duration duration = const Duration(milliseconds: 200), Curve curve = Curves.ease, Duration drag = const Duration(milliseconds: 100)}) -
AutoXL.wiggler
is intended to wiggle and rotate a little bit in its place to represent pointer hovers or accelerometer data.const
Properties
- curve → Curve
-
Curve
for parallax animations for thisAutoXL
's XL widget.
Default is Curves.ease.final - depth → int
-
Any layers past this number will have the same parallax effect factors
(offsets, rotations).
final
- drag → Duration
-
Duration
for parallax animations for thisAutoXL
's XL widget during a pointer hover/drag.
Default is100ms
, except for AutoXL.pane which defaults40ms
.final - duration → Duration
-
Duration
for parallax animations for thisAutoXL
's XL widget.
Default is200ms
, except for AutoXL.pane which defaults100ms
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
layers
→ List<
Widget> -
A
List<Widget>
that will be used to generate progressively more reactive XLayers for this widget's XL.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsPointer → bool
-
Initialize
false
to disable thisAutoXL
from reacting to pointer data.final - supportsSensors → bool
-
Initialize
false
to disable thisAutoXL
from reacting to sensors data.final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited