chore: force span card to always go above input bar (#5096)

This commit is contained in:
ggurdin 2026-01-06 15:34:19 -05:00 committed by GitHub
parent ec0ce0496d
commit 066517a204
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,6 +131,8 @@ class OverlayUtil {
bool addBorder = true,
VoidCallback? onDismiss,
bool ignorePointer = false,
Alignment? targetAnchor,
Alignment? followerAnchor,
}) {
try {
final LayerLinkAndKey layerLinkAndKey =
@ -199,10 +201,10 @@ class OverlayUtil {
closePrevOverlay: closePrevOverlay,
offset: offset,
overlayKey: overlayKey,
targetAnchor:
hasTopOverflow ? Alignment.bottomCenter : Alignment.topCenter,
followerAnchor:
hasTopOverflow ? Alignment.topCenter : Alignment.bottomCenter,
targetAnchor: targetAnchor ??
(hasTopOverflow ? Alignment.bottomCenter : Alignment.topCenter),
followerAnchor: followerAnchor ??
(hasTopOverflow ? Alignment.topCenter : Alignment.bottomCenter),
onDismiss: onDismiss,
ignorePointer: ignorePointer,
);
@ -237,6 +239,8 @@ class OverlayUtil {
transformTargetId: ChoreoConstants.inputTransformTargetKey,
ignorePointer: true,
isScrollable: false,
targetAnchor: Alignment.topCenter,
followerAnchor: Alignment.bottomCenter,
);
}