CommonContainerModel class

Constructors

CommonContainerModel({double? width = 0.0, double? height = 0.0, double? minWidth = 0.0, double? minHeight = 0.0, double? maxWidth = double.infinity, double? maxHeight = double.infinity, AlignmentGeometry? alignment, double? padding = 0.0, double? paddingTop, double? paddingBottom, double? paddingRight, double? paddingLeft, double? paddingVertical, double? paddingHorizontal, double? margin = 0.0, double? marginTop, double? marginBottom, double? marginRight, double? marginLeft, double? marginVertical, double? marginHorizontal, dynamic backgroundColor = COMMON_TRANSPARENT_COLOR, dynamic foregroundColor = COMMON_TRANSPARENT_COLOR, dynamic radiusColor = 0xFF000000, dynamic loadingColor = 0xFF1DD005, double? shadowSpreadRadius = 0.0, double? shadowBlurRadius = 0.0, double? shadowOffsetDX = 0.0, double? shadowOffsetDY = 0.0, dynamic shadowColor = 0xFF000000, double? shadowOpacity = 0.0, double? foregroundShadowSpreadRadius = 0.0, double? foregroundShadowBlurRadius = 0.0, double? foregroundShadowOffsetDX = 0.0, double? foregroundShadowOffsetDY = 0.0, dynamic foregroundShadowColor = 0xFF000000, double? foregroundShadowOpacity = 0.0, double? bottomLeftRadius, double? bottomRightRadius, double? topLeftRadius, double? topRightRadius, double? borderRadius = 0.0, double? foregroundBottomLeftRadius, double? foregroundBottomRightRadius, double? foregroundTopLeftRadius, double? foregroundTopRightRadius, double? foregroundBorderRadius = 0.0, Clip? clipBehavior = Clip.none, Matrix4? transform, AlignmentGeometry? transformAlignment, BorderStyle? borderStyle = BorderStyle.solid, BorderStyle? borderTopStyle, BorderStyle? borderRightStyle, BorderStyle? borderBottomStyle, BorderStyle? borderLeftStyle, double? borderWidth = 0.0, double? borderTopWidth, double? borderRightWidth, double? borderBottomWidth, double? borderLeftWidth, dynamic borderColor = 0xFF000000, dynamic borderTopColor, dynamic borderRightColor, dynamic borderBottomColor, dynamic borderLeftColor, BorderStyle? foregroundBorderStyle = BorderStyle.solid, BorderStyle? foregroundBorderTopStyle, BorderStyle? foregroundBorderRightStyle, BorderStyle? foregroundBorderBottomStyle, BorderStyle? foregroundBorderLeftStyle, double? foregroundBorderWidth = 0.0, double? foregroundBorderTopWidth, double? foregroundBorderRightWidth, double? foregroundBorderBottomWidth, double? foregroundBorderLeftWidth, dynamic foregroundBorderColor = 0xFF000000, dynamic foregroundBorderTopColor, dynamic foregroundBorderRightColor, dynamic foregroundBorderBottomColor, dynamic foregroundBorderLeftColor, Decoration? foregroundDecoration, Decoration? decoration, BoxShape? boxShape = BoxShape.rectangle, BoxShape? foregroundBoxShape = BoxShape.rectangle, TouchableEffect? touchEffect, BlendMode? backgroundBlendMode, BlendMode? foregroundBlendMode, LinearGradient? boxGradient, LinearGradient? foregroundBoxGradient, DecorationImage? foregroundImage, DecorationImage? backgroundImageDecoration, String? backgroundImage, @Deprecated('We Used this just to use same width and height after version (0.3.5) you can use size property instead of width and height to use same with and height for') bool? isResponsive = true, double? size})
const

Properties

alignment AlignmentGeometry?
Align the child within the container.
final
backgroundBlendMode BlendMode?
BlendMode for background image
final
backgroundColor → dynamic
final
backgroundImage String?
you can add your image from assets or internet and we will handle it for you. example : backgroundImage: 'assets/images/image.png' or backgroundImage: 'https://image.png'
final
backgroundImageDecoration DecorationImage?
backgroundImageDecoration image
final
borderBottomColor → dynamic
final
borderBottomStyle BorderStyle?
final
borderBottomWidth double?
final
borderColor → dynamic
final
borderLeftColor → dynamic
final
borderLeftStyle BorderStyle?
final
borderLeftWidth double?
final
borderRadius double?
final
borderRightColor → dynamic
final
borderRightStyle BorderStyle?
final
borderRightWidth double?
final
borderStyle BorderStyle?
final
borderTopColor → dynamic
final
borderTopStyle BorderStyle?
final
borderTopWidth double?
final
borderWidth double?
final
bottomLeftRadius double?
final
bottomRightRadius double?
final
boxGradient LinearGradient?
boxGradient
final
boxShape BoxShape?
BoxShape default value its BoxShape.rectangle example :
final
clipBehavior Clip?
/// The clip behavior when Container.decoration is not null.
final
decoration Decoration?
this is for custom Decoration as you want.
final
foregroundBlendMode BlendMode?
BlendMode for foreground image
final
foregroundBorderBottomColor → dynamic
final
foregroundBorderBottomStyle BorderStyle?
final
foregroundBorderBottomWidth double?
final
foregroundBorderColor → dynamic
final
foregroundBorderLeftColor → dynamic
final
foregroundBorderLeftStyle BorderStyle?
final
foregroundBorderLeftWidth double?
final
foregroundBorderRadius double?
final
foregroundBorderRightColor → dynamic
final
foregroundBorderRightStyle BorderStyle?
final
foregroundBorderRightWidth double?
final
foregroundBorderStyle BorderStyle?
final
foregroundBorderTopColor → dynamic
final
foregroundBorderTopStyle BorderStyle?
final
foregroundBorderTopWidth double?
final
foregroundBorderWidth double?
final
foregroundBottomLeftRadius double?
final
foregroundBottomRightRadius double?
final
foregroundBoxGradient LinearGradient?
foregroundBoxGradient
final
foregroundBoxShape BoxShape?
or foregroundBoxShape: BoxShape.circle
final
foregroundColor → dynamic
final
foregroundDecoration Decoration?
this is for custom Decoration as you want.
final
foregroundImage DecorationImage?
foregroundImage image
final
foregroundShadowBlurRadius double?
final
foregroundShadowColor → dynamic
final
foregroundShadowOffsetDX double?
final
foregroundShadowOffsetDY double?
final
foregroundShadowOpacity double?
final
foregroundShadowSpreadRadius double?
final
foregroundTopLeftRadius double?
final
foregroundTopRightRadius double?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
isResponsive bool?
add true or false to enable or disable responsive numbers in the container. default value is true
final
loadingColor → dynamic
final
margin double?
margin for all container
final
marginBottom double?
margin for bottom container
final
marginHorizontal double?
margin for (right and left || Horizontal) container
final
marginLeft double?
margin for left container
final
marginRight double?
margin for right container
final
marginTop double?
margin for top container
final
marginVertical double?
margin for (top and bottom|| Vertical) container
final
maxHeight double?
final
maxWidth double?
final
minHeight double?
final
minWidth double?
final
padding double?
final
paddingBottom double?
final
paddingHorizontal double?
final
paddingLeft double?
final
paddingRight double?
final
paddingTop double?
final
paddingVertical double?
final
radiusColor → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowBlurRadius double?
final
shadowColor → dynamic
final
shadowOffsetDX double?
final
shadowOffsetDY double?
final
shadowOpacity double?
final
shadowSpreadRadius double?
final
size double?
Size of the container it's used for responsive design to get square container and responsive container and we used this property to get same width and height for responsive container
final
topLeftRadius double?
final
topRightRadius double?
final
touchEffect TouchableEffect?
render the touchEffect when press the container. and you must use onPress function to use touchEffect. example : ```dart touchEffect: TouchEffect( type: TouchTypes.scaleAndFade, duration: 50, lowerBound:0.9, upperBound:1.3, scaleValue:1.3, )
final
transform Matrix4?
The transformation matrix to apply before painting the container.
final
transformAlignment AlignmentGeometry?
The alignment of the origin, relative to the size of the container, if transform is specified.
final
width double?
final

Methods

copyWith({double? width, double? height, double? minWidth, double? minHeight, double? maxWidth, double? maxHeight, double? size, double? padding, double? paddingTop, double? paddingBottom, double? paddingRight, double? paddingLeft, double? paddingVertical, double? paddingHorizontal, double? margin, double? marginTop, double? marginBottom, double? marginRight, double? marginLeft, double? marginVertical, double? marginHorizontal, double? shadowSpreadRadius, double? shadowBlurRadius, double? shadowOffsetDX, double? shadowOffsetDY, double? shadowOpacity, double? foregroundShadowSpreadRadius, double? foregroundShadowBlurRadius, double? foregroundShadowOffsetDX, double? foregroundShadowOffsetDY, double? foregroundShadowOpacity, double? bottomLeftRadius, double? bottomRightRadius, double? topLeftRadius, double? topRightRadius, double? borderRadius, double? borderWidth, double? borderTopWidth, double? borderBottomWidth, double? borderRightWidth, double? borderLeftWidth, double? foregroundBottomLeftRadius, double? foregroundBottomRightRadius, double? foregroundTopLeftRadius, double? foregroundTopRightRadius, double? foregroundBorderRadius, double? foregroundBorderWidth, double? foregroundBorderTopWidth, double? foregroundBorderBottomWidth, double? foregroundBorderRightWidth, double? foregroundBorderLeftWidth, dynamic radiusColor, dynamic shadowColor, dynamic backgroundColor, dynamic borderColor, dynamic borderTopColor, dynamic borderBottomColor, dynamic borderRightColor, dynamic borderLeftColor, dynamic loadingColor, dynamic foregroundShadowColor, dynamic foregroundColor, dynamic foregroundBorderColor, dynamic foregroundBorderTopColor, dynamic foregroundBorderBottomColor, dynamic foregroundBorderRightColor, dynamic foregroundBorderLeftColor, AlignmentGeometry? alignment, AlignmentGeometry? transformAlignment, Clip? clipBehavior, Matrix4? transform, BorderStyle? borderStyle, BorderStyle? borderTopStyle, BorderStyle? borderBottomStyle, BorderStyle? borderRightStyle, BorderStyle? borderLeftStyle, BorderStyle? foregroundBorderStyle, BorderStyle? foregroundBorderTopStyle, BorderStyle? foregroundBorderBottomStyle, BorderStyle? foregroundBorderRightStyle, BorderStyle? foregroundBorderLeftStyle, Decoration? foregroundDecoration, Decoration? decoration, BoxShape? boxShape, BoxShape? foregroundBoxShape, TouchableEffect? touchEffect, BlendMode? backgroundBlendMode, BlendMode? foregroundBlendMode, LinearGradient? boxGradient, LinearGradient? foregroundBoxGradient, DecorationImage? backgroundImageDecoration, String? backgroundImage, DecorationImage? foregroundImage}) CommonContainerModel
getBorder() Border?
get border width and color.
getBorderRadius() BorderRadius?
get border Radius.
getForegroundBorder() Border?
get border width and color.
getForegroundBorderRadius() BorderRadius?
get border Radius.
getHeight() double?
handel container hight. and return the container hight like responsive design if the value smaller than 1.
getResponsiveMaxHeight() double
getResponsiveMaxWidth() double
getResponsiveMinHeight() double
getResponsiveMinWidth() double
getWidth() double?
handel container width. and return the container width like responsive design if the value smaller than 1.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited