splitSegmentedButtonStyle property
The style for SplitSegmentedButton.
SplitSegmentedButton is an internal Widget that by default approximates
SegmentedButton.style, but with each segment being a separate
OutlinedButton.
The widget is currently used for day of week selection for "weekly" frequency.
The style defaults to:
OutlinedButton.styleFrom(
padding: RRulePickerThemeData.defaultPadding,
foregroundColor: theme.colorScheme.onSurface,
shape: RRulePickerThemeData.defaultSplitSegmentedButtonSegmentShape,
side: .new(color: theme.colorScheme.outline),
fixedSize: RRulePickerThemeData.defaultSplitSelectionButtonSegmentSize,
).copyWith(
foregroundColor: .resolveWith((states) {
return states.contains(WidgetState.selected)
? theme.colorScheme.onSecondaryContainer
: theme.colorScheme.onSurface;
}),
backgroundColor: .resolveWith((states) {
return states.contains(WidgetState.selected)
? theme.colorScheme.secondaryContainer
: Colors.transparent;
}),
animationDuration: kThemeAnimationDuration,
)
Implementation
final ButtonStyle? splitSegmentedButtonStyle;