Inheritance
System.Object
RenderFlex
public class RenderFlex : RenderBoxContainerDefaultsMixinContainerRenderObjectMixinRenderBox<RenderBox, FlexParentData>, HitTestTarget, ContainerRenderObjectMixin
Constructors
RenderFlex(List<RenderBox>, Axis, MainAxisSize, MainAxisAlignment, CrossAxisAlignment, TextDirection, VerticalDirection, TextBaseline)
Declaration
public RenderFlex(List<RenderBox> children = null, Axis direction = Axis.horizontal, MainAxisSize mainAxisSize = MainAxisSize.max, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection textDirection = TextDirection.ltr, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline textBaseline = TextBaseline.alphabetic)
Parameters
Fields
Declaration
public CrossAxisAlignment _crossAxisAlignment
Field Value
Declaration
Field Value
_mainAxisAlignment
Declaration
public MainAxisAlignment _mainAxisAlignment
Field Value
_mainAxisSize
Declaration
public MainAxisSize _mainAxisSize
Field Value
Declaration
Field Value
Type |
Description |
System.Single |
|
_textBaseline
Declaration
public TextBaseline _textBaseline
Field Value
_textDirection
Declaration
public TextDirection _textDirection
Field Value
Declaration
public VerticalDirection _verticalDirection
Field Value
Properties
Declaration
public CrossAxisAlignment crossAxisAlignment { get; set; }
Property Value
Declaration
public Axis direction { get; set; }
Property Value
mainAxisAlignment
Declaration
public MainAxisAlignment mainAxisAlignment { get; set; }
Property Value
mainAxisSize
Declaration
public MainAxisSize mainAxisSize { get; set; }
Property Value
textBaseline
Declaration
public TextBaseline textBaseline { get; set; }
Property Value
textDirection
Declaration
public TextDirection textDirection { get; set; }
Property Value
Declaration
public VerticalDirection verticalDirection { get; set; }
Property Value
Methods
Declaration
public float _getCrossSize(RenderBox child)
Parameters
Returns
Type |
Description |
System.Single |
|
Declaration
public FlexFit _getFit(RenderBox child)
Parameters
Returns
Declaration
public int _getFlex(RenderBox child)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Declaration
public float _getIntrinsicSize(Axis sizingDirection, float extent, _ChildSizingFunction childSize)
Parameters
Returns
Type |
Description |
System.Single |
|
_getMainSize(RenderBox)
Declaration
public float _getMainSize(RenderBox child)
Parameters
Returns
Type |
Description |
System.Single |
|
computeDistanceToActualBaseline(TextBaseline)
Declaration
protected override float? computeDistanceToActualBaseline(TextBaseline baseline)
Parameters
Returns
Type |
Description |
System.Nullable<System.Single> |
|
Overrides
Declaration
protected override float computeMaxIntrinsicHeight(float width)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override float computeMaxIntrinsicWidth(float height)
Parameters
Type |
Name |
Description |
System.Single |
height |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override float computeMinIntrinsicHeight(float width)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override float computeMinIntrinsicWidth(float height)
Parameters
Type |
Name |
Description |
System.Single |
height |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override bool hitTestChildren(HitTestResult result, Offset position = null)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
paint(PaintingContext, Offset)
Declaration
public override void paint(PaintingContext context, Offset offset)
Parameters
Overrides
Declaration
protected override void performLayout()
Overrides
Declaration
public override void setupParentData(RenderObject child)
Parameters
Overrides