DecoratedRow class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DecoratedFlex
- DecoratedRow
- Available Extensions
Constructors
-
DecoratedRow({Key? key, EdgeInsets? padding, EdgeInsets? margin, Color? color, Decoration? decoration, Decoration? foregroundDecoration, BoxConstraints? constraints, Matrix4? transform, Offset? offset, double? width, double? height, AlignmentGeometry? alignment, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextBaseline? textBaseline, ContextCallback? onPressed, ContextCallback? onLongPressed, ContextCallback? onDoubleTap, ContextCallback? onSecondaryTap, GestureTapDownCallback? onSecondaryTapDown, GestureDragStartCallback? onVerticalDragStart, GestureDragEndCallback? onVerticalDragEnd, GestureDragEndCallback? onHorizontalDragEnd, HitTestBehavior? behavior, double? itemSpacing = 0, Widget? divider, bool? visible, bool? expanded, bool? flexible, int? flex, @Deprecated('可以使用childrenFlex: FlexConfig.expanded()代替') bool? forceItemSameExtent = false, double? elevation, bool material = false, SafeAreaConfig? safeArea, TextStyle? textStyle, TextAlign? textAlign, bool? softWrap, int? maxLines, TextOverflow? overflow, GlobalKey<
State< ? repaintBoundaryKey, double? widthFactor, double? heightFactor, bool? scrollable, bool? primary, ScrollController? scrollController, ScrollPhysics? scrollPhysics, Duration? animationDuration, Curve? animationCurve, ThemeData? theme, @Deprecated('使用topRight代替') Widget? topEnd, Widget? topRight, bool? center, bool? sliver = false, VerticalDirection? verticalDirection, Clip clipBehavior = Clip.none, Color? iconColor, SystemUiOverlayStyle? systemOverlayStyle, bool? ignorePointer, bool? absorbPointer, bool? enableFeedback, bool? autofillGroup, double? aspectRatio, bool? reverse, FlexConfig? childrenFlex, List<StatefulWidget> >Widget> children = const []}) -
const
Properties
- absorbPointer → bool?
-
是否吸收指针事件(本身响应事件, 但是阻止子Widget响应事件)
finalinherited
- alignment → AlignmentGeometry?
-
finalinherited
- animationCurve → Curve?
-
动画曲线
finalinherited
- animationDuration → Duration?
-
动画时长
finalinherited
- aspectRatio → double?
-
宽高比
finalinherited
- autofillGroup → bool?
-
自动填充组
finalinherited
- behavior → HitTestBehavior?
-
finalinherited
- center → bool?
-
是否加center
finalinherited
-
children
→ List<
Widget> -
子元素
finalinherited
- childrenFlex → FlexConfig?
-
子元素的flex
finalinherited
- clipBehavior → Clip
-
finalinherited
- color → Color?
-
finalinherited
- constraints → BoxConstraints?
-
finalinherited
- crossAxisAlignment → CrossAxisAlignment
-
finalinherited
- decoration → Decoration?
-
finalinherited
- direction → Axis
-
finalinherited
- divider → Widget?
-
分隔控件 与itemSpacing功能类似, 但是优先使用divider
finalinherited
- elevation → double?
-
finalinherited
- enableFeedback → bool?
-
finalinherited
- expanded → bool?
-
是否展开
finalinherited
- flex → int?
-
比例
finalinherited
- flexible → bool?
-
是否展开
finalinherited
- forceItemSameExtent → bool?
-
是否强制子控件等长
finalinherited
- foregroundDecoration → Decoration?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
finalinherited
- heightFactor → double?
-
finalinherited
- iconColor → Color?
-
finalinherited
- ignorePointer → bool?
-
是否忽略指针事件(本身和子Widget都不响应事件)
finalinherited
- itemSpacing → double?
-
元素间距
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mainAxisAlignment → MainAxisAlignment
-
finalinherited
- mainAxisSize → MainAxisSize
-
finalinherited
- margin → EdgeInsets?
-
finalinherited
- material → bool
-
finalinherited
- maxLines → int?
-
finalinherited
- offset → Offset?
-
作用在Transform.translate上的偏移量
finalinherited
- onDoubleTap → ContextCallback?
-
finalinherited
- onHorizontalDragEnd → GestureDragEndCallback?
-
finalinherited
- onLongPressed → ContextCallback?
-
finalinherited
- onPressed → ContextCallback?
-
finalinherited
- onSecondaryTap → ContextCallback?
-
finalinherited
- onSecondaryTapDown → GestureTapDownCallback?
-
finalinherited
- onVerticalDragEnd → GestureDragEndCallback?
-
finalinherited
- onVerticalDragStart → GestureDragStartCallback?
-
finalinherited
- overflow → TextOverflow?
-
finalinherited
- padding → EdgeInsets?
-
finalinherited
- primary → bool?
-
finalinherited
-
repaintBoundaryKey
→ GlobalKey<
State< ?StatefulWidget> > -
是否需要RepaintBoundary
finalinherited
- reverse → bool?
-
是否反向排列
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeArea → SafeAreaConfig?
-
是否安全区域
finalinherited
- scrollable → bool?
-
滚动相关
finalinherited
- scrollController → ScrollController?
-
finalinherited
- scrollPhysics → ScrollPhysics?
-
finalinherited
- sliver → bool?
-
是否sliver
finalinherited
- softWrap → bool?
-
finalinherited
- systemOverlayStyle → SystemUiOverlayStyle?
-
finalinherited
- textAlign → TextAlign?
-
finalinherited
- textBaseline → TextBaseline?
-
finalinherited
- textStyle → TextStyle?
-
内部统一的TextStyle
finalinherited
- theme → ThemeData?
-
主题
finalinherited
- topRight → Widget?
-
右上角控件
finalinherited
- transform → Matrix4?
-
finalinherited
- verticalDirection → VerticalDirection?
-
垂直方向
finalinherited
- visible → bool?
-
是否可见
finalinherited
- width → double?
-
finalinherited
- widthFactor → double?
-
finalinherited
- withForm → bool?
-
是否带有表单
finalinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
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.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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.info}) → String -
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 ==(
Object other) → bool -
The equality operator.
inherited