StreamAppBarStyle class

Visual styling properties for a StreamAppBar.

Defines the appearance of the app bar — background color, padding, inter-slot spacing, title and subtitle text styles, and per-slot button style propagation.

Exposed separately from StreamAppBarThemeData so other theme data classes can embed an app-bar style via a typed field.

{@tool snippet}

Compose a style and hand it to an app bar theme:

StreamAppBarStyle(
  backgroundColor: Color(0xFFFFFFFF),
  padding: EdgeInsets.symmetric(horizontal: 16, vertical: 12),
  spacing: 8,
)

{@end-tool}

See also:

Annotations

Constructors

StreamAppBarStyle({StreamSurfaceStyle? surfaceStyle, Color? backgroundColor, Color? floatingBackgroundColor, EdgeInsetsGeometry? padding, double? spacing, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, StreamButtonThemeStyle? leadingStyle, StreamButtonThemeStyle? trailingStyle})
Creates an app bar style with optional property overrides.
const

Properties

backgroundColor → Color?
The background color of the app bar when docked.
final
canMerge → bool
no setterinherited
floatingBackgroundColor → Color?
The background color of the app bar when floating.
final
hashCode → int
The hash code for this object.
no setterinherited
leadingStyle → StreamButtonThemeStyle?
The button style for any StreamButton rendered in StreamAppBar.leading.
final
padding → EdgeInsetsGeometry?
The padding around the bar'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 StreamAppBar.subtitle.
final
surfaceStyle → StreamSurfaceStyle?
The floating or regular surface style for this app bar.
final
titleTextStyle → TextStyle?
The text style for StreamAppBar.title.
final
trailingStyle → StreamButtonThemeStyle?
The button style for any StreamButton rendered in StreamAppBar.trailing.
final

Methods

copyWith({StreamSurfaceStyle? surfaceStyle, Color? backgroundColor, Color? floatingBackgroundColor, EdgeInsetsGeometry? padding, double? spacing, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, StreamButtonThemeStyle? leadingStyle, StreamButtonThemeStyle? trailingStyle}) → StreamAppBarStyle
inherited
merge(StreamAppBarStyle? other) → StreamAppBarStyle
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(StreamAppBarStyle? a, StreamAppBarStyle? b, double t) → StreamAppBarStyle?
Linearly interpolate between two StreamAppBarStyle objects.