WxSheet<T extends WxSheetThemeData<T> > class
The sheet widget serves as the building block for many Widgetarian components, providing a base layer for customization.
- Inheritance
- Implementers
Constructors
-
WxSheet({Key? key, bool? animated, Duration? duration, Curve? curve, 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, bool? overlay, Color? overlayColor, double? overlayOpacity, ShapeBorder? overlayShape, Size? overlayExtent, 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, String? tooltip, bool selected = false, bool indeterminate = false, bool? disabled, bool loading = false, bool autofocus = false, FocusNode? focusNode, bool? focusable, bool? feedback, bool? inherits, MouseCursor? mouseCursor, VoidCallback? onPressed, ValueChanged<bool> ? onSelected, WxSheetStyle? selectedStyle, WxSheetStyle? indeterminateStyle, WxSheetStyle? focusedStyle, WxSheetStyle? hoveredStyle, WxSheetStyle? pressedStyle, WxSheetStyle? loadingStyle, WxSheetStyle? disabledStyle, WxSheetStyle? style, WxSheetEventController? eventsController, Widget? leading, Widget? trailing, Widget? title, Widget? subtitle, Widget? child}) -
Create a sheet widget
const
-
WxSheet.block({Key? key, bool? animated, Duration? duration, Curve? curve, 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, bool? overlay, Color? overlayColor, double? overlayOpacity, ShapeBorder? overlayShape, Size? overlayExtent, 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, String? tooltip, bool selected = false, bool indeterminate = false, bool? disabled, bool loading = false, bool autofocus = false, FocusNode? focusNode, bool? focusable, bool? feedback, bool? inherits, MouseCursor? mouseCursor, VoidCallback? onPressed, ValueChanged<bool> ? onSelected, WxSheetStyle? selectedStyle, WxSheetStyle? indeterminateStyle, WxSheetStyle? focusedStyle, WxSheetStyle? hoveredStyle, WxSheetStyle? pressedStyle, WxSheetStyle? loadingStyle, WxSheetStyle? disabledStyle, WxSheetStyle? style, WxSheetEventController? eventsController, Widget? leading, Widget? trailing, Widget? title, Widget? subtitle, Widget? child}) -
Create a sheet widget with full width
const
-
WxSheet.circle({Key? key, double? radius, double? minRadius, double? maxRadius, bool? animated, Duration? duration, Curve? curve, 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, bool? overlay, Color? overlayColor, double? overlayOpacity, ShapeBorder? overlayShape, Size? overlayExtent, 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, 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, String? tooltip, bool selected = false, bool indeterminate = false, bool? disabled, bool loading = false, bool autofocus = false, FocusNode? focusNode, bool? focusable, bool? feedback, bool? inherits, MouseCursor? mouseCursor, VoidCallback? onPressed, ValueChanged<bool> ? onSelected, WxSheetStyle? selectedStyle, WxSheetStyle? indeterminateStyle, WxSheetStyle? focusedStyle, WxSheetStyle? hoveredStyle, WxSheetStyle? pressedStyle, WxSheetStyle? loadingStyle, WxSheetStyle? disabledStyle, WxSheetStyle? style, WxSheetEventController? eventsController, Widget? leading, Widget? trailing, Widget? title, Widget? subtitle, Widget? child}) -
Create sheet widget with circle shape
const
-
WxSheet.stadium({Key? key, bool? animated, Duration? duration, Curve? curve, 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, bool? overlay, Color? overlayColor, double? overlayOpacity, ShapeBorder? overlayShape, Size? overlayExtent, 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, 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, DecorationImage? image, List<
BoxShadow> ? shadows, Gradient? gradient, String? tooltip, bool selected = false, bool indeterminate = false, bool? disabled, bool loading = false, bool autofocus = false, FocusNode? focusNode, bool? focusable, bool? feedback, bool? inherits, MouseCursor? mouseCursor, VoidCallback? onPressed, ValueChanged<bool> ? onSelected, WxSheetStyle? selectedStyle, WxSheetStyle? indeterminateStyle, WxSheetStyle? focusedStyle, WxSheetStyle? hoveredStyle, WxSheetStyle? pressedStyle, WxSheetStyle? loadingStyle, WxSheetStyle? disabledStyle, WxSheetStyle? style, WxSheetEventController? eventsController, Widget? leading, Widget? trailing, Widget? title, Widget? subtitle, Widget? child}) -
Create a sheet widget with stadium shape
const
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 child within the sheet.
final
- anchorBuilder β WxSheetWrapper?
-
A function used to wrap the sheet anchor (advanced usage).
no setter
- animated β bool?
-
Whether to animate the sheet decoration.
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
- 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
- child β Widget?
-
The widget below this widget in the tree.
final
- clipBehavior β Clip?
-
The sheet's content will be clipped (or not) according to this option.
final
- curve β Curve?
-
The curve to apply when animating the parameters of this widget.
final
- defaultAnimated β bool
-
Whether the default animation is enabled for the sheet.
no setter
- defaultCurve β Curve
-
The default animation curve for the sheet.
no setter
- defaultDisabled β bool
-
Whether the sheet is disabled by default.
no setter
- defaultDuration β Duration
-
The default animation duration for the sheet.
no setter
- defaultFeedback β bool
-
Whether the default feedback is enabled for the sheet.
no setter
- defaultFocusable β bool
-
Whether the sheet is focusable by default.
no setter
- defaultInherits β bool
-
Whether the sheet inherits styles from its parent theme by default.
no setter
- defaultLeading β Widget?
-
The default leading content for the sheet.
no setter
- defaultMouseCursor β MouseCursor?
-
The default mouse cursor for the sheet.
no setter
- defaultOverlay β bool
-
Whether the default overlay is enabled for the sheet.
no setter
- defaultTrailing β Widget?
-
The default trailing content for the sheet.
no setter
- direction β Axis?
-
The direction to use as the main axis.
final
- disabled β bool?
-
Whether or not this sheet is disabled for input.
final
- disabledStyle β WxSheetStyle?
-
The style to be applied when events includes WidgetEvent.disabled.
final
- duration β Duration?
-
The duration over which to animate the parameters of this widget.
final
- effectiveStyle β WxSheetStyle
-
Retrieves the effective style based on the provided properties.
no setter
- 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
- eventsController β WxSheetEventController?
-
Used by widgets that expose their internal event
for the sake of extensions that add support for additional events.
final
- feedback β bool?
-
Whether detected gestures should disable acoustic and/or haptic feedback.
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
- focusable β bool?
-
If true, this widget may request the primary focus.
final
- focusedStyle β WxSheetStyle?
-
The style to be applied when events includes WxSheetEvent.focused.
final
- focusNode β FocusNode?
-
An optional focus node to use as the focus node for this 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
- 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 setterinherited
- height β double?
-
The vertical extent of the sheet widget.
final
- hoveredStyle β WxSheetStyle?
-
The style to be applied when events includes WxSheetEvent.hovered.
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
- indeterminate β bool
-
Whether or not this sheet is indeterminate.
final
- indeterminateStyle β WxSheetStyle?
-
The style to be applied when events includes WxSheetEvent.indeterminate.
final
- inherits β bool?
-
Whether the sheet inherits variant, severity, and size from its parent theme.
final
- innerWrapper β WxSheetWrapper?
-
A function used to wrap the entire sheet (advanced usage).
no setter
- key β Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading β Widget?
-
A custom widget to display prior to the sheet's child.
final
- loading β bool
-
Whether or not this sheet is in loading state.
final
- loadingStyle β WxSheetStyle?
-
The style to be applied when events includes WxSheetEvent.loading.
final
- 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
- mouseCursor β MouseCursor?
-
The cursor for a mouse pointer when it enters or is hovering over the 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
- onPressed β VoidCallback?
-
Called when the user taps the sheet.
final
-
onSelected
β ValueChanged<
bool> ? -
Called when the sheet should change between selected and de-selected states.
final
- opacity β double?
-
The sheet opacity when pressed, hovered over, or focused.
final
- outerWrapper β WxSheetWrapper?
-
A function used to wrap the sheet content (advanced usage).
no setter
- overlay β bool?
-
Whether the overlay is enabled or not
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
- pressedStyle β WxSheetStyle?
-
The style to be applied when events includes WxSheetEvent.pressed.
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
- selected β bool
-
Whether or not this sheet is selected.
final
- selectedStyle β WxSheetStyle?
-
The style to be applied when events includes WxSheetEvent.selected.
final
- severity β Color?
-
Type of the sheet severity
final
-
shadows
β List<
BoxShadow> ? -
A list of shadows cast by the border.
final
- 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
- style β WxSheetStyle?
-
The style to be applied to the sheet.
final
-
styleModifier
β ValueForwarder<
WxSheetStyle> ? -
A function that modifies the
WxSheetStylebefore applying it to the sheet.no setter - subtitle β Widget?
-
Additional content displayed below the title.
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
- 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 title and the subtitle widgets.
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
- title β Widget?
-
The primary text 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
- tooltip β String?
-
Tooltip string to be used for the body area of the sheet.
final
- trailing β Widget?
-
A custom widget to display next to the sheet's child.
final
- variant β WxSheetVariant?
-
Type of the sheet variant
final
- width β double?
-
The horizontal extent of the sheet widget.
final
Methods
-
build(
BuildContext context) β Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) β StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) β List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) β void -
Add additional properties associated with the node.
override
-
getInheritedStyle(
BuildContext context, bool inherits) β WxSheetStyle -
getParentStyle(
BuildContext context) β WxSheetStyle? -
getParentTheme(
BuildContext context) β WxSheetThemeData< WxSheetThemeParent> ? -
getTheme(
BuildContext context) β WxSheetThemeData< T> -
Retrieves the
WxSheetThemeDatafor the givenBuildContext. -
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
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) β String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) β String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) β String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) β String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) β bool -
The equality operator.
inherited