UWrap constructor

const UWrap({
  1. required List<Widget> children,
  2. Key? key,
  3. double spacing = 8.0,
  4. double runSpacing = 8.0,
  5. Axis direction = Axis.horizontal,
  6. WrapAlignment wrapAlignment = WrapAlignment.start,
  7. WrapAlignment runAlignment = WrapAlignment.start,
  8. WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  9. VerticalDirection verticalDirection = VerticalDirection.down,
  10. TextDirection? textDirection,
  11. Clip wrapClip = Clip.none,
  12. double? width,
  13. double? height,
  14. double? minWidth,
  15. double? maxWidth,
  16. double? minHeight,
  17. double? maxHeight,
  18. EdgeInsetsGeometry? padding,
  19. EdgeInsetsGeometry? margin,
  20. Color? color,
  21. Gradient? gradient,
  22. DecorationImage? image,
  23. BoxBorder? border,
  24. double? radius,
  25. BorderRadius? borderRadius,
  26. List<BoxShadow>? boxShadow,
  27. BoxConstraints? constraints,
  28. AlignmentGeometry? alignment,
  29. BoxShape shape = BoxShape.rectangle,
  30. BlendMode? backgroundBlendMode,
  31. GestureTapCallback? onTap,
  32. GestureLongPressCallback? onLongPress,
  33. GestureTapCallback? onDoubleTap,
  34. bool splash = false,
  35. double? pressedScale,
  36. MouseCursor? cursor,
  37. ValueChanged<bool>? onHover,
  38. double? opacity,
  39. String? tooltip,
  40. String? semanticsLabel,
  41. bool visible = true,
  42. String? heroTag,
  43. VoidCallback? onPress,
  44. BoxFit? fit,
  45. AlignmentGeometry fitAlignment = Alignment.center,
  46. double? scale,
  47. double? rotate,
  48. Offset? translate,
  49. bool center = false,
  50. bool safeArea = false,
  51. Axis? scrollable,
  52. ScrollController? scrollController,
  53. int? expanded,
  54. int? flexible,
  55. bool positioned = false,
  56. double? left,
  57. double? top,
  58. double? right,
  59. double? bottom,
  60. double? positionedWidth,
  61. double? positionedHeight,
})

Implementation

const UWrap({
  required this.children,
  super.key,
  this.spacing = 8.0,
  this.runSpacing = 8.0,
  this.direction = Axis.horizontal,
  this.wrapAlignment = WrapAlignment.start,
  this.runAlignment = WrapAlignment.start,
  this.crossAxisAlignment = WrapCrossAlignment.start,
  this.verticalDirection = VerticalDirection.down,
  this.textDirection,
  this.wrapClip = Clip.none,
  this.width,
  this.height,
  this.minWidth,
  this.maxWidth,
  this.minHeight,
  this.maxHeight,
  this.padding,
  this.margin,
  this.color,
  this.gradient,
  this.image,
  this.border,
  this.radius,
  this.borderRadius,
  this.boxShadow,
  this.constraints,
  this.alignment,
  this.shape = BoxShape.rectangle,
  this.backgroundBlendMode,
  this.onTap,
  this.onLongPress,
  this.onDoubleTap,
  this.splash = false,
  this.pressedScale,
  this.cursor,
  this.onHover,
  this.opacity,
  this.tooltip,
  this.semanticsLabel,
  this.visible = true,
  this.heroTag,
  this.onPress,
  this.fit,
  this.fitAlignment = Alignment.center,
  this.scale,
  this.rotate,
  this.translate,
  this.center = false,
  this.safeArea = false,
  this.scrollable,
  this.scrollController,
  this.expanded,
  this.flexible,
  this.positioned = false,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.positionedWidth,
  this.positionedHeight,
});