DecoratedFlex class

Inheritance

Constructors

DecoratedFlex({Key key, EdgeInsets padding, EdgeInsets margin, Color color, Decoration decoration, Decoration foregroundDecoration, BoxConstraints constraints, Matrix4 transform, double width, double height, @required Axis direction, AlignmentGeometry alignment, MainAxisAlignment mainAxisAlignment: MainAxisAlignment.start, MainAxisSize mainAxisSize: MainAxisSize.max, CrossAxisAlignment crossAxisAlignment: CrossAxisAlignment.center, TextBaseline textBaseline, PressedCallback onPressed, PressedCallback onLongPressed, HitTestBehavior behavior: HitTestBehavior.opaque, double itemSpacing: 0, Widget divider, bool visible: true, bool crossExpanded: false, bool forceItemSameExtent: false, double elevation, bool safeArea, List<Widget> children})

Properties

alignment AlignmentGeometry
final
behavior HitTestBehavior
final
children → List<Widget>
子元素
final
color Color
final
constraints BoxConstraints
final
crossAxisAlignment CrossAxisAlignment
final
crossExpanded → bool
cross方向上是否展开
final
decoration Decoration
final
direction Axis
final
divider Widget
分隔控件 与itemSpacing功能类似, 但是优先使用divider
final
elevation → double
final
forceItemSameExtent → bool
是否强制子控件等长
final
foregroundDecoration Decoration
final
height → double
final
itemSpacing → double
元素间距
final
mainAxisAlignment MainAxisAlignment
final
mainAxisSize MainAxisSize
final
margin EdgeInsets
final
onLongPressed PressedCallback
final
onPressed PressedCallback
final
padding EdgeInsets
final
safeArea → bool
是否安全区域
final
textBaseline TextBaseline
final
transform Matrix4
final
visible → bool
是否可见
final
width → double
final
hashCode → int
The hash code for this object.
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addItemDivider(List<Widget> children, double itemSpacing, Widget divider) → List<Widget>
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug}) → String
Returns a string representation of this object.
inherited
toStringDeep({String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner: ', ', DiagnosticLevel minLevel: DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited