DecoratedFlex constructor
const
DecoratedFlex({
- Key? key,
- EdgeInsets? padding,
- EdgeInsets? margin,
- Color? color,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- BoxConstraints? constraints,
- Matrix4? transform,
- Offset? offset,
- double? width,
- double? height,
- required Axis direction,
- 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,
- bool? withForm,
- int? flex,
- @Deprecated('可以使用childrenFlex: FlexConfig.expanded()代替') bool? forceItemSameExtent = false,
- double? elevation,
- SafeAreaConfig? safeArea,
- bool? scrollable,
- bool? primary,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- double? widthFactor,
- double? heightFactor,
- bool material = false,
- TextStyle? textStyle,
- TextAlign? textAlign,
- bool? softWrap,
- int? maxLines,
- TextOverflow? overflow,
- GlobalKey<
State< ? repaintBoundaryKey,StatefulWidget> > - Duration? animationDuration,
- Curve? animationCurve,
- ThemeData? theme,
- 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<
Widget> children = const [],
Implementation
const DecoratedFlex({
super.key,
this.padding,
this.margin,
this.color,
this.decoration,
this.foregroundDecoration,
this.constraints,
this.transform,
this.offset,
this.width,
this.height,
required this.direction,
this.alignment,
this.mainAxisAlignment = MainAxisAlignment.start,
this.mainAxisSize = MainAxisSize.max,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.textBaseline,
this.onPressed,
this.onLongPressed,
this.onDoubleTap,
this.onSecondaryTap,
this.onSecondaryTapDown,
this.onVerticalDragStart,
this.onVerticalDragEnd,
this.onHorizontalDragEnd,
this.behavior,
this.itemSpacing = 0,
this.divider,
this.visible,
this.expanded,
this.flexible,
this.withForm,
this.flex,
@Deprecated('可以使用childrenFlex: FlexConfig.expanded()代替')
this.forceItemSameExtent = false,
this.elevation,
this.safeArea,
this.scrollable,
this.primary,
this.scrollController,
this.scrollPhysics,
this.widthFactor,
this.heightFactor,
this.material = false,
this.textStyle,
this.textAlign,
this.softWrap,
this.maxLines,
this.overflow,
this.repaintBoundaryKey,
this.animationDuration,
this.animationCurve,
this.theme,
this.topRight,
this.center,
this.sliver = false,
this.verticalDirection,
this.clipBehavior = Clip.none,
this.iconColor,
this.systemOverlayStyle,
this.ignorePointer,
this.absorbPointer,
this.enableFeedback,
this.autofillGroup,
this.aspectRatio,
this.reverse,
this.childrenFlex,
this.children = const [],
});