DecoratedFlex constructor

const DecoratedFlex({
  1. Key? key,
  2. EdgeInsets? padding,
  3. EdgeInsets? margin,
  4. Color? color,
  5. Decoration? decoration,
  6. Decoration? foregroundDecoration,
  7. BoxConstraints? constraints,
  8. Matrix4? transform,
  9. Offset? offset,
  10. double? width,
  11. double? height,
  12. required Axis direction,
  13. AlignmentGeometry? alignment,
  14. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  15. MainAxisSize mainAxisSize = MainAxisSize.max,
  16. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  17. TextBaseline? textBaseline,
  18. ContextCallback? onPressed,
  19. ContextCallback? onLongPressed,
  20. ContextCallback? onDoubleTap,
  21. ContextCallback? onSecondaryTap,
  22. GestureTapDownCallback? onSecondaryTapDown,
  23. GestureDragStartCallback? onVerticalDragStart,
  24. GestureDragEndCallback? onVerticalDragEnd,
  25. GestureDragEndCallback? onHorizontalDragEnd,
  26. HitTestBehavior? behavior,
  27. double? itemSpacing = 0,
  28. Widget? divider,
  29. bool? visible,
  30. bool? expanded,
  31. bool? flexible,
  32. bool? withForm,
  33. int? flex,
  34. @Deprecated('可以使用childrenFlex: FlexConfig.expanded()代替') bool? forceItemSameExtent = false,
  35. double? elevation,
  36. SafeAreaConfig? safeArea,
  37. bool? scrollable,
  38. bool? primary,
  39. ScrollController? scrollController,
  40. ScrollPhysics? scrollPhysics,
  41. double? widthFactor,
  42. double? heightFactor,
  43. bool material = false,
  44. TextStyle? textStyle,
  45. TextAlign? textAlign,
  46. bool? softWrap,
  47. int? maxLines,
  48. TextOverflow? overflow,
  49. GlobalKey<State<StatefulWidget>>? repaintBoundaryKey,
  50. Duration? animationDuration,
  51. Curve? animationCurve,
  52. ThemeData? theme,
  53. Widget? topRight,
  54. bool? center,
  55. bool? sliver = false,
  56. VerticalDirection? verticalDirection,
  57. Clip clipBehavior = Clip.none,
  58. Color? iconColor,
  59. SystemUiOverlayStyle? systemOverlayStyle,
  60. bool? ignorePointer,
  61. bool? absorbPointer,
  62. bool? enableFeedback,
  63. bool? autofillGroup,
  64. double? aspectRatio,
  65. bool? reverse,
  66. FlexConfig? childrenFlex,
  67. 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 [],
});