EasyContainer constructor

const EasyContainer({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onTap,
  4. double? height,
  5. double? width,
  6. double margin = 5,
  7. EdgeInsets? customMargin,
  8. Color? shadowColor,
  9. Color? color,
  10. void onHighlightChanged(
    1. bool
    )?,
  11. GestureTapCallback? onDoubleTap,
  12. GestureLongPressCallback? onLongPress,
  13. GestureTapDownCallback? onTapDown,
  14. GestureTapCancelCallback? onTapCancel,
  15. ValueChanged<bool>? onHover,
  16. MouseCursor? mouseCursor,
  17. Color? focusColor,
  18. Color? hoverColor,
  19. Color? highlightColor,
  20. MaterialStateProperty<Color?>? overlayColor,
  21. Color? splashColor,
  22. InteractiveInkFeatureFactory? splashFactory,
  23. double? inkSplashRadius,
  24. ShapeBorder? customBorder,
  25. FocusNode? focusNode,
  26. ValueChanged<bool>? onFocusChange,
  27. double? alignmentWidthFactor,
  28. double? alignmentHeightFactor,
  29. AlignmentGeometry? alignment = Alignment.center,
  30. bool borderOnForeground = true,
  31. bool semanticContainer = true,
  32. bool canRequestFocus = true,
  33. bool autofocus = false,
  34. bool? enableFeedback = true,
  35. bool excludeFromSemantics = false,
  36. bool allowOverflow = false,
  37. double borderRadius = 5,
  38. BorderRadius? customBorderRadius,
  39. double elevation = 5,
  40. double padding = 10,
  41. EdgeInsets? customPadding,
  42. bool zeroDownElevationOnTap = true,
  43. bool showBorder = false,
  44. double borderWidth = 1,
  45. Color borderColor = Colors.black,
  46. BorderStyle borderStyle = BorderStyle.solid,
})

Implementation

const EasyContainer({
  Key? key,
  required this.child,
  this.onTap,
  this.height,
  this.width,
  this.margin = 5,
  this.customMargin,
  this.shadowColor,
  this.color,
  this.onHighlightChanged,
  this.onDoubleTap,
  this.onLongPress,
  this.onTapDown,
  this.onTapCancel,
  this.onHover,
  this.mouseCursor,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.overlayColor,
  this.splashColor,
  this.splashFactory,
  this.inkSplashRadius,
  this.customBorder,
  this.focusNode,
  this.onFocusChange,
  this.alignmentWidthFactor,
  this.alignmentHeightFactor,
  this.alignment = Alignment.center,
  this.borderOnForeground = true,
  this.semanticContainer = true,
  this.canRequestFocus = true,
  this.autofocus = false,
  this.enableFeedback = true,
  this.excludeFromSemantics = false,
  this.allowOverflow = false,
  this.borderRadius = 5,
  this.customBorderRadius,
  this.elevation = 5,
  this.padding = 10,
  this.customPadding,
  this.zeroDownElevationOnTap = true,
  this.showBorder = false,
  this.borderWidth = 1,
  this.borderColor = Colors.black,
  this.borderStyle = BorderStyle.solid,
}) : super(key: key);