Guest User

getPositionForChild

a guest
Jul 25th, 2025
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.58 KB | None | 0 0
  1. @override
  2. Offset getPositionForChild(Size size, Size childSize) {
  3.   if (axis == Axis.vertical) {
  4.     return positionDependentBoxVertically(
  5.       size: size,
  6.       childSize: childSize,
  7.       target: target,
  8.       horizontalOffset: horizontalOffset,
  9.       verticalOffset: verticalOffset,
  10.       preferBelow: preferBelow,
  11.     );
  12.   } else {
  13.     return positionDependentBoxHorizontally(
  14.       size: size,
  15.       childSize: childSize,
  16.       target: target,
  17.       horizontalOffset: horizontalOffset,
  18.       verticalOffset: verticalOffset,
  19.       preferRight: preferRight,
  20.     );
  21.   }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment