EasyContainer class
Constructors
EasyContainer ({Key ? key , required Widget child , VoidCallback ? onTap , double ? height , double ? width , double margin = 5 , EdgeInsets ? customMargin , Color ? shadowColor , Color ? color , void onHighlightChanged (bool )?, 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 = 1.5 , double padding = 10 , EdgeInsets ? customPadding , bool zeroDownElevationOnTap = true , bool showBorder = false , double borderWidth = 1 , Color borderColor = Colors.black , BorderStyle borderStyle = BorderStyle.solid })
const
Properties
alignment
→ AlignmentGeometry ?
Align the child within the container.
final
alignmentHeightFactor
→ double ?
If non-null, sets its height to the child's height multiplied by this factor.
final
alignmentWidthFactor
→ double ?
If non-null, sets its width to the child's width multiplied by this factor.
final
allowOverflow
→ bool
Whether the child contents are allowed to overflow the
boundaries of the container.
final
autofocus
→ bool
True if this widget will be selected as the initial focus when no other
node in its scope is currently focused.
final
borderColor
→ Color
Color of the border.
final
borderOnForeground
→ bool
Whether to paint the border in front of the child .
final
borderRadius
→ double
The border radius for each corner.
The double passed as borderRadius is applied to all the corners.
final
borderStyle
→ BorderStyle
The style of line to draw for a BorderSide in a Border .
final
borderWidth
→ double
Width of the border (if any).
If borderColor is not passed, this parameter has no effect.
final
canRequestFocus
→ bool
If true, this focus node may request the primary focus.
final
child
→ Widget
The child of the container.
final
color
→ Color ?
The container's background color.
final
customBorder
→ ShapeBorder ?
The custom clip border which overrides borderRadius .
final
customBorderRadius
→ BorderRadius ?
The border radius for each corner.
final
customMargin
→ EdgeInsets ?
The empty space that surrounds the card.
final
customPadding
→ EdgeInsets ?
The amount of space by which to inset the child.
final
elevation
→ double
The z-coordinate at which to place this card. This controls the size of
the shadow below the card.
final
enableFeedback
→ bool ?
Whether detected gestures should provide acoustic and/or haptic feedback.
final
excludeFromSemantics
→ bool
Whether to exclude the gestures introduced by this widget from the
semantics tree.
final
focusColor
→ Color ?
The color of the ink response when the parent widget is focused. If this
property is null then the focus color of the theme,
ThemeData.focusColor , will be used.
final
focusNode
→ FocusNode ?
An optional focus node to use as the focus node for this widget.
final
hashCode
→ int
The hash code for this object.
no setter inherited
height
→ double ?
Height of the EasyContainer .
final
highlightColor
→ Color ?
The highlight color of the ink response when pressed. If this property is
null then the highlight color of the theme, ThemeData.highlightColor ,
will be used.
final
hoverColor
→ Color ?
The color of the ink response when a pointer is hovering over it. If this
property is null then the hover color of the theme,
ThemeData.hoverColor , will be used.
final
inkSplashRadius
→ double ?
The radius of the ink splash.
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
margin
→ double
The empty space that surrounds the card.
The double passed as margin is applied to all the sides.
final
mouseCursor
→ MouseCursor ?
The cursor for a mouse pointer when it enters or is hovering over the
widget.
final
onDoubleTap
→ GestureTapCallback ?
Called when the user double taps the container.
final
onFocusChange
→ ValueChanged <bool > ?
Handler called when the focus changes.
final
onHighlightChanged
→ (void Function(bool ) ?)
Called when the container either becomes highlighted or stops
being highlighted.
final
onHover
→ ValueChanged <bool > ?
Called when a pointer enters or exits the ink response area.
final
onLongPress
→ GestureLongPressCallback ?
Called when the user long-presses the container.
final
onTap
→ VoidCallback ?
Called every time EasyContainer is tapped;
final
onTapCancel
→ GestureTapCancelCallback ?
Called when the user cancels a tap that was started on the container.
final
onTapDown
→ GestureTapDownCallback ?
Called when the user taps down the container.
final
overlayColor
→ MaterialStateProperty <Color ? > ?
Defines the ink response focus, hover, and splash colors.
final
padding
→ double
The amount of space by which to inset the child.
The double passed as padding is applied from all the sides.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
semanticContainer
→ bool
Whether this widget represents a single semantic container, or if false
a collection of individual semantic nodes.
final
shadowColor
→ Color ?
Color of the card's shadow.
final
showBorder
→ bool
Whether to show the container's border or not
final
splashColor
→ Color ?
The splash color of the ink response. If this property is null then the
splash color of the theme, ThemeData.splashColor , will be used.
final
splashFactory
→ InteractiveInkFeatureFactory ?
Defines the appearance of the splash.
final
width
→ double ?
Width of the EasyContainer .
final
zeroDownElevationOnTap
→ bool
If true, when the card is tapped, or long pressed,
the card deepens down giving a cool effect.
final