BadgeStyle class

The style to be applied to badge widget

Inheritance
Annotations

Constructors

BadgeStyle({SheetSeverity? severity, double? width, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Alignment? alignment, Clip? clipBehavior, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, BoxShape? shape, Color? iconColor, double? iconOpacity, double? iconSize})
Create a raw badge's style
const
BadgeStyle.circle({double? size = 20, SheetSeverity? severity, EdgeInsetsGeometry? margin = EdgeInsets.zero, EdgeInsetsGeometry? padding = EdgeInsets.zero, Alignment? alignment = Alignment.center, Clip? clipBehavior, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, Color? iconColor, double? iconOpacity, double? iconSize})
Create a raw badge's style
const
BadgeStyle.from(BadgeStyle? other)
Create a badge's style from another style

Properties

alignment Alignment?
Align the child within the sheet.
finalinherited
backgroundAlpha int?
Alpha to be apply to backgroundColor.
finalinherited
backgroundColor Color?
Color to be used for the sheet's background.
finalinherited
backgroundOpacity double?
Opacity to be apply to backgroundColor.
finalinherited
borderAlpha int?
Alpha to be apply to borderColor.
finalinherited
borderColor Color?
Color to be used for the sheet's border.
finalinherited
borderOpacity double?
Opacity to be apply to borderColor.
finalinherited
borderRadius BorderRadius?
The radii for each corner of the sheet's border.
finalinherited
borderStyle BorderStyle?
The style of this side of the sheet's border.
finalinherited
borderWidth double?
The width of this side of the sheet's border, in logical pixels.
finalinherited
clipBehavior Clip?
The sheet's content will be clipped (or not) according to this option.
finalinherited
elevation double?
The sheet's z-coordinate relative to the parent at which to place this physical object.
finalinherited
foregroundAlign CrossAxisAlignment?
Cross axis alignment of the foreground widget
finalinherited
foregroundAlpha int?
Alpha to be apply to foregroundColor.
finalinherited
foregroundColor Color?
The color to be applied to the sheet's label, and icon
finalinherited
foregroundExpanded bool?
Whether the foreground widget is expanded or not
finalinherited
foregroundJustify MainAxisAlignment?
Main axis alignment of the foreground widget
finalinherited
foregroundLoosen bool?
Whether the spacing is forced to child with no leading or trailing.
finalinherited
foregroundOpacity double?
Opacity to be apply to foregroundColor.
finalinherited
foregroundSpacing double?
How much space to place between sheet's foreground widget in a run in the main axis.
finalinherited
foregroundStyle TextStyle?
The style to be applied to the sheet's label.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
The vertical extent of the sheet widget.
finalinherited
iconColor Color?
Color to be used for the icon's inside the sheet.
finalinherited
iconOpacity double?
Opacity to be apply to iconColor.
finalinherited
iconSize double?
The size of the icon's inside the sheet, in logical pixels.
finalinherited
isElevated bool
Whether or not this is elevated variant
no setterinherited
isFilled bool
Whether or not this is filled variant
no setterinherited
isOutlined bool
Whether or not this is outlined variant
no setterinherited
isText bool
Whether or not this is text variant
no setterinherited
isTonal bool
Whether or not this is tonal variant
no setterinherited
margin EdgeInsetsGeometry?
Empty space to surround the outside sheet.
finalinherited
overlayColor Color?
Defines the overlay colors.
finalinherited
overlayDisabled bool?
Whether the overlay is disabled or not
finalinherited
padding EdgeInsetsGeometry?
The padding between the contents of the sheet and the outside sheet.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity SheetSeverity?
Type of the sheet severity
finalinherited
shadowColor Color?
When elevation is non zero the color to use for the sheet's shadow color.
finalinherited
shape BoxShape?
The type of shape.
finalinherited
surfaceTint Color?
The color used as an overlay on color to indicate elevation.
finalinherited
variant SheetVariant?
Type of the sheet variant
finalinherited
width double?
The horizontal extent of the sheet widget.
finalinherited

Methods

copyWith({BadgeVariant? variant, BadgeSeverity? severity, double? width, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Alignment? alignment, Clip? clipBehavior, bool? overlayDisabled, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, BoxShape? shape, Color? iconColor, double? iconOpacity, double? iconSize}) BadgeStyle
Creates a copy of this BadgeStyle but with the given fields replaced with the new values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
merge(covariant BadgeStyle? other) BadgeStyle
Creates a copy of this BadgeStyle but with the given fields replaced with the new values.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toMap() Map<String, dynamic>
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

lerp(BadgeStyle? a, BadgeStyle? b, double t) BadgeStyle?
Linearly interpolate between two BadgeStyle objects.
override

Constants

defaults → const BadgeStyle
An BadgeStyle with some reasonable default values.