Skip to content

Commit 5481a88

Browse files
committed
HOTFIX wrapping stack alignment patch.
1 parent 27dcb24 commit 5481a88

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/src/transformers/node_transformers/passive_stack_transformer.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,9 @@ class PassiveStackTransformer extends NodeWidgetTransformer<BaseNode> {
138138
// expand and crash because the Positioned widget would give the scroll
139139
// view unbounded sizing.
140140
// cut off when scrolling is forced (i.e. with bouncing scroll physics).
141-
final bool shouldUsePositioned = parent.childrenOrEmpty.length > 1 &&
142-
!doesParentScroll &&
143-
!isTallest &&
144-
!isWidest;
141+
final bool shouldUsePositioned =
142+
(parent.isOneOrBothWrap && parent.childrenOrEmpty.length > 1) ||
143+
(!doesParentScroll && !isTallest && !isWidest);
145144

146145
// This is required to make wrapping stack in a scroll view work because
147146
// wrapping stack cannot figure out its size when there only positioned

0 commit comments

Comments
 (0)