INNER CODE UNIT · Dart
spaceBelow
TerminalStudio/xterm.dart · lib/suggestion.dart:169
final spaceBelow = size.height -
cursorRect.value.bottom -
padding.bottom -
cursorMargin.bottom;
final childConstraints = BoxConstraints(
minWidth: 0,
maxWidth: size.width - padding.horizontal,
minHeight: 0,
maxHeight: max(spaceAbove, spaceBelow),
);
child.layout(childConstraints, parentUsesSize: true);
// Whether the completion overlay can be placed above the cursor.
final fitsBelow = spaceBelow >= child.size.height;
final childParentData = child.parentData as BoxParentData;