File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
lib/src/transformers/node_transformers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments