ActionLayoutDelegate class abstract

ActionLayoutDelegate is a base class for laying out SlideActionPanel RenderSlideAction would always create a new ActionLayoutDelegate from ActionLayout, and will invoke layout when doing RenderSlideAction.performLayout

Constructors

ActionLayoutDelegate({required ActionPosition position, required ActionMotion motion, ActionController? controller})

Properties

controller ActionController?
final
hashCode int
The hash code for this object.
no setterinherited
motion ActionMotion
final
position ActionPosition
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getRelativeOffset({required SizedConstraints sizedConstraints, required int index, required double ratio}) Offset
index's offset would be relative to the previous index's offset currently, each action item is laid out using a tight BoxConstraints so SizedConstraints.getShiftFromConstraints is used to get the size of the previous action item for ActionMotion.stretch and ActionMotion.drawer, the previous action item's size is multiplied by ratio, which is changed by the SlideController.animationValue for ActionMotion.behind, action items' origin do not change during animation, for ActionMotion.scroll, action items' origin are translated during animation
getSizedConstraints({required Size size, required Axis axis, required int childCount}) SizedConstraints
if no action item is expanded by ActionController, SpaceEvenlyLayoutDelegate would give each action item the same BoxConstraints calculated by averaging the total space along the axis;
layout(RenderBox child, Size size, int childCount, {double ratio = 1.0, required Axis axis}) → void
different ActionLayoutDelegate may return different SizedConstraints in getSizedConstraints so that each action item could be laid out using s specific BoxConstraints and each action item would be positioned at a specific offset calculated by getRelativeOffset
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited