StreamSurfaceStyle enum
The presentation of a Stream surface.
A component's own style (e.g. StreamAppBarStyle.surfaceStyle) takes precedence over the app-wide default on StreamTheme.
{@tool snippet}
Make the whole app floating:
ThemeData(extensions: [StreamTheme(surfaceStyle: StreamSurfaceStyle.floating)])
{@end-tool}
See also:
- StreamTheme, which holds the app-wide default.
- StreamAppBarStyle.surfaceStyle, which overrides it for the app bar.
- StreamBottomAppBarStyle.surfaceStyle, which overrides it for the bottom bar.
Values
- regular → const StreamSurfaceStyle
-
A docked surface: opaque, taking its own space in the layout.
- floating → const StreamSurfaceStyle
-
A floating surface: translucent, hovering over the content it covers.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isFloating → bool
-
Whether this is the floating variant.
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
StreamSurfaceStyle> - A constant List of the values in this enum, in order of their declaration.