Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @override
- Offset getPositionForChild(Size size, Size childSize) {
- if (axis == Axis.vertical) {
- return positionDependentBoxVertically(
- size: size,
- childSize: childSize,
- target: target,
- horizontalOffset: horizontalOffset,
- verticalOffset: verticalOffset,
- preferBelow: preferBelow,
- );
- } else {
- return positionDependentBoxHorizontally(
- size: size,
- childSize: childSize,
- target: target,
- horizontalOffset: horizontalOffset,
- verticalOffset: verticalOffset,
- preferRight: preferRight,
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment