public ButtonBar( Key key = null, MainAxisAlignment alignment = MainAxisAlignment.end, MainAxisSize mainAxisSize = MainAxisSize.max, ButtonTextTheme?buttonTextTheme = null, float?buttonMinWidth = null, float?buttonHeight = null, EdgeInsetsGeometry buttonPadding = null, bool?buttonAlignedDropdown = null, ButtonBarLayoutBehavior?layoutBehavior = null, VerticalDirection?overflowDirection = null, float?overflowButtonSpacing = null, List <Widget> children = null ) : base(key: key) { D.assert(buttonMinWidth == null || buttonMinWidth >= 0.0f); D.assert(buttonHeight == null || buttonHeight >= 0.0f); D.assert(overflowButtonSpacing == null || overflowButtonSpacing >= 0.0f); this.alignment = alignment; this.mainAxisSize = mainAxisSize; this.buttonTextTheme = buttonTextTheme; this.buttonMinWidth = buttonMinWidth; this.buttonHeight = buttonHeight; this.buttonPadding = buttonPadding; this.buttonAlignedDropdown = buttonAlignedDropdown; this.layoutBehavior = layoutBehavior; this.overflowDirection = overflowDirection; this.overflowButtonSpacing = overflowButtonSpacing; this.children = children ?? new List <Widget>(); }
public ButtonBar( Key key = null, MainAxisAlignment alignment = MainAxisAlignment.end, MainAxisSize mainAxisSize = MainAxisSize.max, List <Widget> children = null ) : base(key: key) { this.alignment = alignment; this.mainAxisSize = mainAxisSize; this.children = children ?? new List <Widget>(); }
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); }
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; }