fix drag/drop position of container chip
This commit is contained in:
+8
-2
@@ -73,8 +73,14 @@ class TabDragContainerTarget extends HookConsumerWidget {
|
|||||||
overlayChildBuilder: (context) => CompositedTransformFollower(
|
overlayChildBuilder: (context) => CompositedTransformFollower(
|
||||||
link: layerLink,
|
link: layerLink,
|
||||||
showWhenUnlinked: false,
|
showWhenUnlinked: false,
|
||||||
child: IgnorePointer(
|
// The follower fills the Overlay (Positioned.fill semantics),
|
||||||
child: Transform.scale(scale: 1.1, child: child),
|
// 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(
|
child: CompositedTransformTarget(
|
||||||
|
|||||||
Reference in New Issue
Block a user