WxSheetStyle class
The style to be applied to the sheet widget
- Mixed-in types
- Implementers
- Annotations
Constructors
-
WxSheetStyle({Axis? direction, WxSheetVariant? variant, WxSheetSize? size, Color? severity, double? width, double? height, double? minWidth, double? maxWidth, double? minHeight, double? maxHeight, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? spacing, bool? adaptiveSpacing, Offset? offset, double? scale, double? rotate, bool? flipX, bool? flipY, double? opacity, Alignment? alignment, Clip? clipBehavior, Color? overlayColor, double? overlayOpacity, ShapeBorder? overlayShape, Size? overlayExtent, Color? surfaceTint, Color? elevationColor, double? elevation, CrossAxisAlignment? tileAlign, MainAxisAlignment? tileJustify, bool? tileWrap, TextStyle? textStyle, TextAlign? textAlign, double? textSpacing, Color? textColor, TextOverflow? textOverflow, bool? textSoftWrap, TextWidthBasis? textWidthBasis, bool? adaptiveForegroundColor, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, double? borderOffset, OutlinedBorder? border, DecorationImage? image, List<
BoxShadow> ? shadows, Gradient? gradient, Color? iconColor, double? iconOpacity, double? iconSize, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, bool? checkmarkRounded, Color? spinnerColor, Color? spinnerBackgroundColor, double? spinnerSize, double? spinnerWidth, bool? spinnerRounded, TextStyle? titleStyle, TextStyle? subtitleStyle, double? titleSize, double? subtitleSize, Color? titleColor, Color? subtitleColor, int? titleMaxLines, int? subtitleMaxLines, FontWeight? titleWeight, FontWeight? subtitleWeight}) -
WxSheetStyle with an empty value.
const
-
WxSheetStyle.block({Axis? direction, WxSheetVariant? variant, WxSheetSize? size, Color? severity, double? height, double? minHeight, double? maxHeight, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? spacing, bool? adaptiveSpacing, Offset? offset, double? scale, double? rotate, bool? flipX, bool? flipY, double? opacity, Alignment? alignment, Clip? clipBehavior, Color? overlayColor, double? overlayOpacity, ShapeBorder? overlayShape, Size? overlayExtent, Color? surfaceTint, Color? elevationColor, double? elevation, CrossAxisAlignment? tileAlign, MainAxisAlignment? tileJustify, bool? tileWrap, TextStyle? textStyle, TextAlign? textAlign, double? textSpacing, Color? textColor, TextOverflow? textOverflow, bool? textSoftWrap, TextWidthBasis? textWidthBasis, bool? adaptiveForegroundColor, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, double? borderOffset, OutlinedBorder? border, DecorationImage? image, List<
BoxShadow> ? shadows, Gradient? gradient, Color? iconColor, double? iconOpacity, double? iconSize, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, bool? checkmarkRounded, Color? spinnerColor, Color? spinnerBackgroundColor, double? spinnerSize, double? spinnerWidth, bool? spinnerRounded, TextStyle? titleStyle, TextStyle? subtitleStyle, double? titleSize, double? subtitleSize, Color? titleColor, Color? subtitleColor, int? titleMaxLines, int? subtitleMaxLines, FontWeight? titleWeight, FontWeight? subtitleWeight}) -
WxSheetStyle with a default value for full width.
const
-
WxSheetStyle.circle({double? radius, double? minRadius, double? maxRadius, Axis? direction, WxSheetVariant? variant, WxSheetSize? size, Color? severity, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? spacing, bool? adaptiveSpacing, Offset? offset, double? scale, double? rotate, bool? flipX, bool? flipY, double? opacity, Alignment? alignment, Clip? clipBehavior, Color? overlayColor, double? overlayOpacity, ShapeBorder? overlayShape, Size? overlayExtent, Color? surfaceTint, Color? elevationColor, double? elevation, CrossAxisAlignment? tileAlign, MainAxisAlignment? tileJustify, bool? tileWrap, TextStyle? textStyle, TextAlign? textAlign, double? textSpacing, Color? textColor, TextOverflow? textOverflow, bool? textSoftWrap, TextWidthBasis? textWidthBasis, bool? adaptiveForegroundColor, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderStyle? borderStyle, double? borderOffset, DecorationImage? image, List<
BoxShadow> ? shadows, Gradient? gradient, Color? iconColor, double? iconOpacity, double? iconSize, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, bool? checkmarkRounded, Color? spinnerColor, Color? spinnerBackgroundColor, double? spinnerSize, double? spinnerWidth, bool? spinnerRounded, TextStyle? titleStyle, TextStyle? subtitleStyle, double? titleSize, double? subtitleSize, Color? titleColor, Color? subtitleColor, int? titleMaxLines, int? subtitleMaxLines, FontWeight? titleWeight, FontWeight? subtitleWeight}) -
WxSheetStyle with a default value for circle shape.
const
- WxSheetStyle.from(WxSheetStyle? other)
- Create a WxSheetStyle from another style
Properties
- adaptiveForegroundColor → bool?
-
Whether the foreground color is adaptive to background color.
final
- adaptiveSpacing → bool?
-
Whether the spacing is forced to child with no leading or trailing.
final
- alignment → Alignment?
-
Align the
childwithin 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
- border → OutlinedBorder?
-
A border to draw.
final
- borderAlpha → int?
-
Alpha to be apply to borderColor.
final
- borderColor → Color?
-
Color to be used for the sheet's border.
final
- borderOffset → double?
-
The relative position of the stroke on a BorderSide in an
OutlinedBorder or 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
- checkmarkColor → Color?
-
The color of the checkmark.
final
- checkmarkRounded → bool?
-
Whether the checkmark has rounded edges.
final
- checkmarkSize → double?
-
The size of the checkmark. If null, the checkmark expands to fit its parent.
final
- checkmarkWeight → double?
-
The stroke width of the checkmark.
final
- clipBehavior → Clip?
-
The sheet's content will be clipped (or not) according to this option.
final
- constraints → BoxConstraints
-
constraints to apply to the sheet widget
no setter
- direction → Axis?
-
The direction to use as the main axis.
final
- elevation → double?
-
The sheet's z-coordinate relative to
the parent at which to place this physical object.
final
- elevationColor → Color?
-
When elevation is non zero the color
to use for the sheet's shadow color.
final
- flipX → bool?
-
Controls whether the sheet widget is flipped horizontally (mirrored).
Setting flipX to true will cause the sheet
to be displayed as if reflected across a vertical axis.
final
- flipY → bool?
-
Controls whether the sheet widget is flipped vertically (inverted).
Setting flipY to true will cause the sheet
to be displayed as if reflected across a horizontal axis.
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
- foregroundOpacity → double?
-
Opacity to be apply to foregroundColor.
final
- gradient → Gradient?
-
A gradient to use when filling the shape.
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
- image → DecorationImage?
-
An image to paint inside the shape (clipped to its outline).
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
- maxHeight → double?
-
The maximum height of the sheet widget
final
- maxWidth → double?
-
The maximum width of the sheet widget
final
- minHeight → double?
-
The minimum height of the sheet widget
final
- minWidth → double?
-
The minimum width of the sheet widget
final
- offset → Offset?
-
Adjust the size of the sheet relative to its original size.
A value of 1 maintains the original size,
while values greater than 1 enlarge
and values less than 1 shrink the element.
final
- opacity → double?
-
The sheet opacity when pressed, hovered over, or focused.
final
- overlayColor → Color?
-
Defines the overlay colors.
final
- overlayExtent → Size?
-
The extent of the overlay.
final
- overlayOpacity → double?
-
Opacity to be apply to overlayColor.
final
- overlayShape → ShapeBorder?
-
The shape (e.g., circle, rectangle) to use for the overlay drawn around
this part of the anchor when pressed, hovered over, or focused.
final
- padding → EdgeInsetsGeometry?
-
The padding between the contents of the sheet and the outside sheet.
final
- rotate → double?
-
Rotates sheet element by a specified number of degrees.
Use a positive value for clockwise rotation
or a negative value for counter-clockwise rotation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double?
-
Adjust the size of the sheet relative to its original size.
A value of 1 maintains the original size,
while values greater than 1 enlarge
and values less than 1 shrink the element.
final
- severity → Color?
-
Type of the sheet severity
final
-
shadows
→ List<
BoxShadow> ? -
A list of shadows cast by the border.
final
- shape → ShapeBorder
-
Returns a ShapeBorder instance by combining
and overriding properties from the given parameters.
no setter
- size → WxSheetSize?
-
Type of the sheet size
final
- spacing → double?
-
How much space to place between sheet's foreground widget in a run in the main axis.
final
- spinnerBackgroundColor → Color?
-
Color to be used for the spinner's background inside the sheet.
final
- spinnerColor → Color?
-
Color to be used for the spinner's inside the sheet.
final
- spinnerRounded → bool?
-
Whether the spinner's stroke is rounded.
final
- spinnerSize → double?
-
The size of the spinner's inside the sheet.
final
- spinnerWidth → double?
-
The width of the spinner's stoke inside the sheet.
final
- subtitleColor → Color?
-
The text color to be applied to subtitle.
final
- subtitleMaxLines → int?
-
The text max lines to be applied to subtitle.
final
- subtitleSize → double?
-
The font size to be applied to title.
final
- subtitleStyle → TextStyle?
-
The text style to be applied to subtitle.
final
- subtitleWeight → FontWeight?
-
The font weight to be applied to subtitle.
final
- surfaceTint → Color?
-
The color used as an overlay on
colorto indicate elevation.final - textAlign → TextAlign?
-
The align to be applied to the sheet's label.
This only has an effect on widgets that respect the DefaultTextStyle,
such as Text.
final
- textColor → Color?
-
The text color to be applied to title and subtitle.
final
- textOverflow → TextOverflow?
-
The text overflow to be applied to title and subtitle.
final
- textSoftWrap → bool?
-
The text softWrap to be applied to title and subtitle.
final
- textSpacing → double?
-
The gap between the
titleand thesubtitlewidgets.final - textStyle → TextStyle?
-
The style to be applied to the sheet's label.
final
- textWidthBasis → TextWidthBasis?
-
The text width basis to be applied to title and subtitle.
final
- tileAlign → CrossAxisAlignment?
-
Cross axis alignment of the foreground widget
final
- tileJustify → MainAxisAlignment?
-
Main axis alignment of the foreground widget
final
- tileWrap → bool?
-
Controls how the child widget or (title and subtitle)
fills its available space (expand or wrap content).
final
- titleColor → Color?
-
The text color to be applied to title.
final
- titleMaxLines → int?
-
The text max lines to be applied to title.
final
- titleSize → double?
-
The font size to be applied to title.
final
- titleStyle → TextStyle?
-
The text style to be applied to title.
final
- titleWeight → FontWeight?
-
The font weight to be applied to title.
final
- variant → WxSheetVariant?
-
Type of the sheet variant
final
- width → double?
-
The horizontal extent of the sheet widget.
final
Methods
-
asBlock(
{bool? tileWrap, CrossAxisAlignment? tileAlign, MainAxisAlignment? tileJustify, double? spacing}) → WxSheetStyle - Creates a copy of this WxSheetStyle but with the width replaced with double.infinity.
-
asCircle(
{double? radius, double? minRadius, double? maxRadius}) → WxSheetStyle - Creates a copy of this WxSheetStyle but with padding is EdgeInsets.zero and squared size.
-
copyWith(
{Axis? direction, WxSheetVariant? variant, WxSheetSize? size, Color? severity, double? width, double? height, double? minWidth, double? maxWidth, double? minHeight, double? maxHeight, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? spacing, bool? adaptiveSpacing, Offset? offset, double? scale, double? rotate, bool? flipX, bool? flipY, double? opacity, Alignment? alignment, Clip? clipBehavior, Color? overlayColor, double? overlayOpacity, ShapeBorder? overlayShape, Size? overlayExtent, Color? surfaceTint, Color? elevationColor, double? elevation, CrossAxisAlignment? tileAlign, MainAxisAlignment? tileJustify, bool? tileWrap, TextStyle? textStyle, TextAlign? textAlign, double? textSpacing, Color? textColor, TextOverflow? textOverflow, bool? textSoftWrap, TextWidthBasis? textWidthBasis, bool? adaptiveForegroundColor, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, double? borderOffset, OutlinedBorder? border, DecorationImage? image, List< BoxShadow> ? shadows, Gradient? gradient, Color? iconColor, double? iconOpacity, double? iconSize, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, bool? checkmarkRounded, Color? spinnerColor, Color? spinnerBackgroundColor, double? spinnerSize, double? spinnerWidth, bool? spinnerRounded, TextStyle? titleStyle, TextStyle? subtitleStyle, double? titleSize, double? subtitleSize, Color? titleColor, Color? subtitleColor, int? titleMaxLines, int? subtitleMaxLines, FontWeight? titleWeight, FontWeight? subtitleWeight}) → WxSheetStyle - Creates a copy of this WxSheetStyle but with the given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
WxSheetStyle? other) → WxSheetStyle - Creates a copy of this WxSheetStyle 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(
WxSheetStyle? a, WxSheetStyle? b, double t) → WxSheetStyle? - Linearly interpolate between two WxSheetStyle objects.
Constants
- disabledBackgroundAlpha → const int
- disabledBorderAlpha → const int
- disabledForegroundAlpha → const int
- An WxSheetStyle with some reasonable disabled values.