StreamBottomAppBarStyle class
Visual styling properties for a StreamBottomAppBar.
Defines the appearance of the bottom app bar — background colour, padding, inter-slot spacing, title and subtitle text styles, and per-slot button style propagation.
Exposed separately from StreamBottomAppBarThemeData so other theme data classes can embed a bottom-app-bar style via a typed field.
{@tool snippet}
Compose a style and hand it to a bottom app bar theme:
StreamBottomAppBarStyle(
backgroundColor: Color(0xFFFFFFFF),
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 12),
spacing: 8,
)
{@end-tool}
See also:
- StreamBottomAppBarThemeData, which wraps this style for theming.
- StreamBottomAppBar, which uses this styling.
- Annotations
-
- @themeGen
- @immutable
Constructors
- StreamBottomAppBarStyle({Color? backgroundColor, EdgeInsetsGeometry? padding, double? spacing, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, StreamButtonThemeStyle? leadingStyle, StreamButtonThemeStyle? trailingStyle})
-
Creates a bottom app bar style with optional property overrides.
const
Properties
- backgroundColor → Color?
-
The background colour of the bottom app bar.
final
- canMerge → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- leadingStyle → StreamButtonThemeStyle?
-
The button style for any StreamButton rendered in
StreamBottomAppBar.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
StreamBottomAppBar.subtitle.final - titleTextStyle → TextStyle?
-
The text style for
StreamBottomAppBar.title.final - trailingStyle → StreamButtonThemeStyle?
-
The button style for any StreamButton rendered in
StreamBottomAppBar.trailing.final
Methods
-
copyWith(
{Color? backgroundColor, EdgeInsetsGeometry? padding, double? spacing, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, StreamButtonThemeStyle? leadingStyle, StreamButtonThemeStyle? trailingStyle}) → StreamBottomAppBarStyle -
inherited
-
merge(
StreamBottomAppBarStyle? other) → StreamBottomAppBarStyle -
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(
StreamBottomAppBarStyle? a, StreamBottomAppBarStyle? b, double t) → StreamBottomAppBarStyle? - Linearly interpolate between two StreamBottomAppBarStyle objects.