ChildFlySpaceBehaviour class
Render a wrap field like SpaceBehaviour but animated the child as a star.
This is an very experimental behaviour, which could be implemented as a normal Flutter animation. It can be removed at any time.
Known issues:
- Gesture detection does not work properly while is animating.
- Inheritance
-
- Object
- Behaviour
- SpaceBehaviour
- ChildFlySpaceBehaviour
Constructors
Properties
- center ↔ Offset?
-
The center of the warp field.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Gets the initialization state of this behaviour
no setterinherited
- renderObject ↔ RenderAnimatedBackground?
-
The render object of the AnimatedBackground this behaviour is provided to.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size?
-
The size of the render object of the AnimatedBackground this behaviour is provided to.
no setterinherited
-
stars
↔ List<
Star> ? -
The list of stars spawned by the behaviour
getter/setter pairinherited
- targetCenter ↔ Offset?
-
The target center of the warp field.
getter/setter pairinherited
Methods
-
builder(
BuildContext context, BoxConstraints constraints, Widget child) → Widget -
Called when the layout needs to be rebuilt.
override
-
init(
) → void -
Called when this behaviour should be initialized
inherited
-
initFrom(
Behaviour oldBehaviour) → void -
Called when this behaviour should be initialized from an old behaviour.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
PaintingContext context, Offset offset) → void -
Called each time the AnimatedBackground needs to repaint.
inherited
-
tick(
double delta, Duration elapsed) → bool -
Called each time there is an update from the ticker on the AnimatedBackground
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited