StreamButtonThemeData class
Theme data for customizing StreamButton widgets.
Organizes button styles by StreamButtonStyle variant (primary, secondary, destructive). Each variant can define styles for all StreamButtonTypes (solid, outline, ghost).
See also:
- StreamButtonTheme, for overriding theme in a widget subtree.
- StreamButtonTypeStyle, for per-type styling.
- Annotations
-
- @themeGen
- @immutable
Constructors
- StreamButtonThemeData({StreamButtonTypeStyle? primary, StreamButtonTypeStyle? secondary, StreamButtonTypeStyle? destructive})
-
Creates button theme data with optional style overrides per variant.
const
- StreamButtonThemeData.all(StreamButtonTypeStyle style)
-
Creates button theme data that applies
styleto every style variant.const
Properties
- canMerge → bool
-
no setterinherited
- destructive → StreamButtonTypeStyle?
-
Styles for destructive (error/danger) buttons.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- primary → StreamButtonTypeStyle?
-
Styles for primary (brand/accent) buttons.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondary → StreamButtonTypeStyle?
-
Styles for secondary (neutral) buttons.
final
Methods
-
copyWith(
{StreamButtonTypeStyle? primary, StreamButtonTypeStyle? secondary, StreamButtonTypeStyle? destructive}) → StreamButtonThemeData -
inherited
-
merge(
StreamButtonThemeData? other) → StreamButtonThemeData -
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(
StreamButtonThemeData? a, StreamButtonThemeData? b, double t) → StreamButtonThemeData? - Linearly interpolate between two StreamButtonThemeData objects.