M3EButtonGroup constructor
const
M3EButtonGroup({
- Key? key,
- required List<
M3EButtonGroupAction> actions, - M3EButtonGroupType type = M3EButtonGroupType.standard,
- M3EButtonShape shape = M3EButtonShape.round,
- M3EButtonSize size = M3EButtonSize.sm,
- M3EButtonStyle style = M3EButtonStyle.filled,
- M3EButtonGroupDensity density = M3EButtonGroupDensity.regular,
- double? spacing,
- Axis direction = Axis.horizontal,
- int? selectedIndex,
- Set<
int> ? selectedIndices, - ValueChanged<
int?> ? onSelectedIndexChanged, - ValueChanged<
Set< ? onSelectedIndicesChanged,int> > - bool multiSelect = false,
- bool selectionRequired = false,
- bool neighborSquish = true,
- double expandedRatio = 0.15,
- M3EHapticFeedback haptic = M3EHapticFeedback.none,
- bool enableFeedback = true,
- M3EButtonDecoration? decoration,
- String? semanticLabel,
- Clip clipBehavior = Clip.none,
- M3EButtonGroupOverflow overflow = M3EButtonGroupOverflow.scroll,
- Widget? overflowIcon,
- M3EOverflowPopupDecoration overflowPopupDecoration = const M3EOverflowPopupDecoration(),
- M3EOverflowBottomSheetDecoration overflowBottomSheetDecoration = const M3EOverflowBottomSheetDecoration(),
- M3EButtonGroupOverflowMenuStyle overflowMenuStyle = M3EButtonGroupOverflowMenuStyle.popup,
- M3EOverflowStrategy? overflowStrategy,
Creates a button group.
Implementation
const M3EButtonGroup({
super.key,
required this.actions,
this.type = M3EButtonGroupType.standard,
this.shape = M3EButtonShape.round,
this.size = M3EButtonSize.sm,
this.style = M3EButtonStyle.filled,
this.density = M3EButtonGroupDensity.regular,
this.spacing,
this.direction = Axis.horizontal,
this.selectedIndex,
this.selectedIndices,
this.onSelectedIndexChanged,
this.onSelectedIndicesChanged,
this.multiSelect = false,
this.selectionRequired = false,
this.neighborSquish = true,
this.expandedRatio = 0.15,
this.haptic = M3EHapticFeedback.none,
this.enableFeedback = true,
this.decoration,
this.semanticLabel,
this.clipBehavior = Clip.none,
this.overflow = M3EButtonGroupOverflow.scroll,
this.overflowIcon,
this.overflowPopupDecoration = const M3EOverflowPopupDecoration(),
this.overflowBottomSheetDecoration =
const M3EOverflowBottomSheetDecoration(),
this.overflowMenuStyle = M3EButtonGroupOverflowMenuStyle.popup,
this.overflowStrategy,
});