StreamSheetHeaderStyle class

Visual styling properties for a StreamSheetHeader.

Defines the appearance of the header including padding, spacing, title and subtitle text styles, and the default button style for the leading and trailing slots.

Exposed separately from StreamSheetHeaderThemeData so other theme data classes can embed a sheet-header style via a typed field.

{@tool snippet}

Compose a style and hand it to a sheet header theme:

StreamSheetHeaderStyle(
  padding: EdgeInsets.symmetric(horizontal: 16, vertical: 12),
  spacing: 8,
  leadingStyle: StreamButtonThemeStyle.from(
    backgroundColor: colors.backgroundSurfaceSubtle,
  ),
)

{@end-tool}

See also:

Annotations

Constructors

StreamSheetHeaderStyle({EdgeInsetsGeometry? padding, double? spacing, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, StreamButtonThemeStyle? leadingStyle, StreamButtonThemeStyle? trailingStyle})
Creates a sheet header style with optional property overrides.
const

Properties

canMerge bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
leadingStyle StreamButtonThemeStyle?
The button style for any StreamButton rendered in StreamSheetHeader.leading.
final
padding EdgeInsetsGeometry?
The padding around the header's content row.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacing double?
The horizontal space between the leading, heading, and trailing slots.
final
subtitleTextStyle TextStyle?
The text style for StreamSheetHeader.subtitle.
final
titleTextStyle TextStyle?
The text style for StreamSheetHeader.title.
final
trailingStyle StreamButtonThemeStyle?
The button style for any StreamButton rendered in StreamSheetHeader.trailing.
final

Methods

copyWith({EdgeInsetsGeometry? padding, double? spacing, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, StreamButtonThemeStyle? leadingStyle, StreamButtonThemeStyle? trailingStyle}) StreamSheetHeaderStyle
inherited
merge(StreamSheetHeaderStyle? other) StreamSheetHeaderStyle
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

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