buttonStyle property
Per-instance style overrides for the split button.
These take precedence over the inherited StreamButtonTheme entry the split button's StreamSplitButtonVariant maps to, and apply to both the shared surface and the two halves, without affecting other StreamButton instances in the tree.
StreamButtonThemeStyle.backgroundColor and StreamButtonThemeStyle.borderColor land on the shared surface — the halves themselves are always painted transparent and borderless so the surface reads as a single control.
{@tool snippet}
Give the split button a custom surface:
StreamSplitButtonStyle(
buttonStyle: StreamButtonThemeStyle.from(
backgroundColor: Colors.black12,
foregroundColor: Colors.white,
),
)
{@end-tool}
Implementation
final StreamButtonThemeStyle? buttonStyle;