CsSheet class

A sheet attached to a screen edge. Usually opened with showCsSheet.

A sheet that follows the finger, rubberbands past its open position, projects release velocity to pick a snap point or dismiss, and can be grabbed mid-animation. Draws its own scrim, dimmed in proportion to how far the sheet is open.

Inheritance

Constructors

CsSheet({Key? key, required CsSheetEdge edge, required Widget child, Widget? header, double maxExtentFraction = 0.75, List<double>? snapPoints, int? initialSnapPointIndex, bool preventDismissGestures = false, VoidCallback? onCloseComplete, VoidCallback? onOpenComplete, String? accessibilityLabel, double borderRadius = CsBorderRadius.container, bool? reduceMotion})
const

Properties

accessibilityLabel → String?
final
borderRadius → double
Radius of the corners facing the screen center (bottom and top sheets).
final
child → Widget
Content of the sheet surface.
final
edge → CsSheetEdge
final
hashCode → int
The hash code for this object.
no setterinherited
Drawn outside the surface, on the side facing the screen center (the outside handle bar of a tray).
final
initialSnapPointIndex → int?
Index into the sorted snapPoints to open at. Defaults to the smallest.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxExtentFraction → double
Largest share of the screen the sheet may take along its axis.
final
onCloseComplete → VoidCallback?
Called when the sheet finishes leaving and is not inside a sheet route.
final
onOpenComplete → VoidCallback?
final
preventDismissGestures → bool
final
reduceMotion → bool?
Overrides the platform reduced-motion setting.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snapPoints → List<double>?
Visible heights as fractions of the available screen height, for bottom and top sheets. Null sizes the sheet to its content.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<CsSheet>
Creates the mutable state for this widget at a given location in the tree.
override
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.
inherited
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