|
|
|
|
|
|
public RenderStack( |
|
|
|
StackFit? fit, |
|
|
|
Overflow? overflow, |
|
|
|
TextDirection textDirection, |
|
|
|
this.textDirection = textDirection; |
|
|
|
_alignment = alignment ?? Alignment.topLeft; |
|
|
|
_fit = fit ?? StackFit.loose; |
|
|
|
_overflow = overflow ?? Overflow.clip; |
|
|
|
|
|
|
child.parentData = new StackParentData(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Alignment _resolvedAlignment; |
|
|
|
void _markNeedResolution() { |
|
|
|
_resolvedAlignment = null; |
|
|
|
markNeedsLayout(); |
|
|
|
} |
|
|
|
|
|
|
|
public TextDirection textDirection { |
|
|
|
get { |
|
|
|
return _textDirection; |
|
|
|
} |
|
|
|
set { |
|
|
|
if (_textDirection == value) |
|
|
|
return; |
|
|
|
_textDirection = value; |
|
|
|
_markNeedResolution(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
TextDirection _textDirection; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Alignment _alignment; |
|
|
|
|
|
|
|
public Alignment alignment { |
|
|
|
|
|
|
public RenderIndexedStack( |
|
|
|
List<RenderBox> children = null, |
|
|
|
Alignment alignment = null, |
|
|
|
TextDirection textDirection = default, |
|
|
|
) : base(fit: null, overflow: null, children: children, alignment: alignment ?? Alignment.topLeft) { |
|
|
|
) : base(fit: null, overflow: null, textDirection: textDirection, children: children, alignment: alignment ?? Alignment.topLeft) { |
|
|
|
_index = index; |
|
|
|
} |
|
|
|
|
|
|
|