public ScrollList( [NotNull] List <Widget> children, [CanBeNull] Key key = null, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.Start, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.Start ) : base(children, key) { CrossAxisAlignment = crossAxisAlignment; MainAxisAlignment = mainAxisAlignment; }
public Column( [NotNull] List <Widget> children, [CanBeNull] Key key = null, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.Start, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.Start, AxisSize crossAxisSize = AxisSize.Min, AxisSize mainAxisSize = AxisSize.Min ) : base( children, key ) { CrossAxisAlignment = crossAxisAlignment; MainAxisAlignment = mainAxisAlignment; CrossAxisSize = crossAxisSize; MainAxisSize = mainAxisSize; }
public GridFlow( [NotNull] List <Widget> children, [CanBeNull] Key key = null, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.Start, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.Start, AxisSize crossAxisSize = AxisSize.Min, AxisSize mainAxisSize = AxisSize.Min, [CanBeNull] int?maxCrossAxisCount = null, [CanBeNull] float?maxCrossAxisExtent = null) : base(children, key) { CrossAxisAlignment = crossAxisAlignment; MainAxisAlignment = mainAxisAlignment; CrossAxisSize = crossAxisSize; MainAxisSize = mainAxisSize; MaxCrossAxisCount = Math.Max(maxCrossAxisCount ?? int.MaxValue, 1); MaxCrossAxisExtent = Math.Max(maxCrossAxisExtent ?? float.MaxValue, 1); }
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 ) { this._direction = direction; this._mainAxisAlignment = mainAxisAlignment; this._mainAxisSize = mainAxisSize; this._crossAxisAlignment = crossAxisAlignment; this._textDirection = textDirection; this._verticalDirection = verticalDirection; this._textBaseline = textBaseline; this.addAll(children); }
private static TextAnchor ToTextAnchor(MainAxisAlignment main, CrossAxisAlignment cross) { switch (main) { case MainAxisAlignment.Center: return(cross == CrossAxisAlignment.Start ? TextAnchor.MiddleLeft : cross == CrossAxisAlignment.Center ? TextAnchor.MiddleCenter : TextAnchor.MiddleRight); case MainAxisAlignment.End: return(cross == CrossAxisAlignment.Start ? TextAnchor.LowerLeft : cross == CrossAxisAlignment.Center ? TextAnchor.LowerCenter : TextAnchor.LowerRight); case MainAxisAlignment.Start: return(cross == CrossAxisAlignment.Start ? TextAnchor.UpperLeft : cross == CrossAxisAlignment.Center ? TextAnchor.UpperCenter : TextAnchor.UpperRight); default: return(TextAnchor.UpperLeft); } }
internal _ButtonBarRow( List <Widget> children, Axis direction = Axis.horizontal, MainAxisSize mainAxisSize = MainAxisSize.max, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection?textDirection = null, VerticalDirection overflowDirection = VerticalDirection.down, TextBaseline?textBaseline = null, float?overflowButtonSpacing = null ) : base( children: children, direction: direction, mainAxisSize: mainAxisSize, mainAxisAlignment: mainAxisAlignment, crossAxisAlignment: crossAxisAlignment, textDirection: textDirection, verticalDirection: overflowDirection, textBaseline: textBaseline ) { this.overflowButtonSpacing = overflowButtonSpacing; }
internal _RenderButtonBarRow( 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, float?overflowButtonSpacing = null ) : base( children: children, direction: direction, mainAxisSize: mainAxisSize, mainAxisAlignment: mainAxisAlignment, crossAxisAlignment: crossAxisAlignment, textDirection: textDirection, verticalDirection: verticalDirection, textBaseline: textBaseline ) { D.assert(overflowButtonSpacing == null || overflowButtonSpacing >= 0); this.overflowButtonSpacing = overflowButtonSpacing; }