SheetStyle class

The style to be applied to the sheet widget

Mixed in types
Implementers
Annotations

Constructors

SheetStyle({SheetVariant? variant, SheetSeverity? 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})
SheetStyle with an empty value.
const
SheetStyle.elevated({Color? color, SheetSeverity? 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, double? backgroundOpacity, int? backgroundAlpha, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, BoxShape? shape, Color? iconColor, double? iconOpacity, double? iconSize})
Create SheetStyle with default value for elevated style.
const
SheetStyle.filled({Color? color, SheetSeverity? 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, double? backgroundOpacity, int? backgroundAlpha, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, BoxShape? shape, Color? iconColor, double? iconOpacity, double? iconSize})
Create SheetStyle with default value for filled style.
const
SheetStyle.from(SheetStyle? other)
Create a SheetStyle from another style
SheetStyle.outlined({Color? color, SheetSeverity? 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, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, BoxShape? shape, Color? iconColor, double? iconOpacity, double? iconSize})
Create SheetStyle with default value for outlined style.
const
SheetStyle.tonal({Color? color, SheetSeverity? 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, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, 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 SheetStyle with default value for toned style.
const

Properties

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

Methods

copyWith({SheetVariant? variant, SheetSeverity? 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}) SheetStyle
Creates a copy of this SheetStyle but with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
merge(SheetStyle? other) SheetStyle
Creates a copy of this SheetStyle but with the given fields replaced with the new values.
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>
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.
override

Static Methods

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

Constants

defaults → const SheetStyle
An SheetStyle with some reasonable default values.
disabled → const SheetStyle
An SheetStyle with some reasonable disabled values.