performLayout method
if no child or the size of RenderSlideAction is empty, do nothing
typically, if RenderSlideAction is not visible, its size would be empty
only the visible RenderSlideAction would be laid out and painted
the layout process is delegated to the BaseActionLayoutDelegate
created from ActionLayout
Implementation
@override
void performLayout() {
final child = firstChild;
final position = (parentData as SlidableBoxData).position!;
if (child == null) {
return;
}
final layoutDelegate = _actionLayout.buildDelegate(
position,
controller: controller,
);
layoutDelegate.layout(
firstChild!,
size,
childCount,
ratio: slidePercent.value.abs(),
axis: _slideAxis,
);
}