EasyContainer constructor
const
EasyContainer({
- Key? key,
- required Widget child,
- VoidCallback? onTap,
- double? height,
- double? width,
- double margin = 5,
- EdgeInsets? customMargin,
- Color? shadowColor,
- Color? color,
- void onHighlightChanged()?,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapDownCallback? onTapDown,
- GestureTapCancelCallback? onTapCancel,
- ValueChanged<
bool> ? onHover, - MouseCursor? mouseCursor,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- MaterialStateProperty<
Color?> ? overlayColor, - Color? splashColor,
- InteractiveInkFeatureFactory? splashFactory,
- double? inkSplashRadius,
- ShapeBorder? customBorder,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - double? alignmentWidthFactor,
- double? alignmentHeightFactor,
- AlignmentGeometry? alignment = Alignment.center,
- bool borderOnForeground = true,
- bool semanticContainer = true,
- bool canRequestFocus = true,
- bool autofocus = false,
- bool? enableFeedback = true,
- bool excludeFromSemantics = false,
- bool allowOverflow = false,
- double borderRadius = 5,
- BorderRadius? customBorderRadius,
- double elevation = 5,
- double padding = 10,
- EdgeInsets? customPadding,
- bool zeroDownElevationOnTap = true,
- bool showBorder = false,
- double borderWidth = 1,
- Color borderColor = Colors.black,
- 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);