fix drag/drop position of container chip

This commit is contained in:
Fabian Freund
2026-05-26 11:20:44 +02:00
parent 1ac4b20469
commit 8d882ffc3f
@@ -73,8 +73,14 @@ class TabDragContainerTarget extends HookConsumerWidget {
overlayChildBuilder: (context) => CompositedTransformFollower(
link: layerLink,
showWhenUnlinked: false,
child: IgnorePointer(
child: Transform.scale(scale: 1.1, child: child),
// The follower fills the Overlay (Positioned.fill semantics),
// so the preview subtree gets loose constraints to paint at its
// intrinsic size anchored to the leader's top-left.
child: Align(
alignment: AlignmentDirectional.topStart,
child: IgnorePointer(
child: Transform.scale(scale: 1.1, child: child),
),
),
),
child: CompositedTransformTarget(