StreamSheet class
The visual chrome of a Stream-styled sheet.
Renders child on the design system's sheet surface — rounded top
corners, StreamColorScheme.backgroundElevation1 background,
elevation 1, and anti-aliased clipping. Each visual property
follows the same resolution chain — the per-instance argument wins,
then StreamSheetThemeData (from StreamTheme.sheetTheme or a
nearer StreamSheetTheme), then the built-in fallback.
Used by StreamSheetRoute to render the sheet's surface; can also be used standalone when a sheet-like surface is needed outside a modal route. The widget is purely visual — it does not implement drag-to-dismiss (that's the route's job) and does not render a drag handle (compose StreamSheetDragHandle over child when needed).
{@tool snippet}
A standalone sheet surface:
StreamSheet(
constraints: BoxConstraints(maxWidth: 480),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
StreamSheetHeader(title: Text('Details')),
// ... contents
],
),
)
{@end-tool}
See also:
- StreamSheetThemeData, which describes the configurable properties and their defaults.
- StreamSheetRoute / showStreamSheet, the modal route that uses this widget.
- StreamSheetDragHandle, the visual handle drawn at the top of a modal sheet.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- StreamSheet
Constructors
- StreamSheet({Key? key, required Widget child, Color? backgroundColor, Color? surfaceTintColor, Color? shadowColor, double? elevation, ShapeBorder? shape, BorderRadiusGeometry? borderRadius, Clip? clipBehavior, BoxConstraints? constraints})
-
Creates a Stream-styled sheet surface.
const
Properties
- backgroundColor → Color?
-
The background color of the sheet.
final
- borderRadius → BorderRadiusGeometry?
-
The border radius applied to the sheet.
final
- child → Widget
-
The widget below this widget in the tree — typically the body of
the sheet.
final
- clipBehavior → Clip?
-
How to clip the sheet's content against its shape / borderRadius.
final
- constraints → BoxConstraints?
-
Optional BoxConstraints applied around the sheet.
final
- elevation → double?
-
The elevation of the sheet.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
The shadow color cast around the sheet.
final
- shape → ShapeBorder?
-
The shape applied to the sheet.
final
- surfaceTintColor → Color?
-
The surface tint color used as an overlay on the sheet's
background.
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.
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