GlassButtonGroupItem constructor
const
GlassButtonGroupItem({
- required Widget icon,
- VoidCallback? onTap,
- String? label,
- bool enabled = true,
Creates a group item with an icon and optional tap callback.
When onTap is omitted (or null), the item renders passively without
outer button semantics, keyboard focus stop, or tap handling, allowing
custom child widgets to expose their own semantics and gestures.
Implementation
const GlassButtonGroupItem({
required this.icon,
VoidCallback? onTap,
this.label,
this.enabled = true,
}) : onTap = onTap ?? _noOp,
menuItems = null,
menuAlignment = null,
menuWidth = 200,
menuHeight = null;