GlassButtonGroup.icons constructor
const
GlassButtonGroup.icons({
- required List<
GlassGroupItem> items, - Key? key,
- Axis direction = Axis.horizontal,
- LiquidGlassSettings? settings,
- GlassQuality? quality,
- double borderRadius = 22.0,
- Color? borderColor,
- bool useOwnLayer = false,
- bool showDividers = false,
- double iconSize = 22.0,
- EdgeInsetsGeometry itemPadding = const EdgeInsets.all(12),
Creates a group of glass buttons from lightweight GlassGroupItems.
Each item is rendered as a simple icon with press-dim feedback — no animation controllers, stretch physics, or glow overlays. The group provides the glass surface.
Defaults to showDividers: false and borderRadius: 22.0 for the
unified pill look shown in iOS 26 toolbar groups.
Implementation
const GlassButtonGroup.icons({
required List<GlassGroupItem> this.items,
super.key,
this.direction = Axis.horizontal,
this.settings,
this.quality,
this.borderRadius = 22.0,
this.borderColor,
this.useOwnLayer = false,
this.showDividers = false,
this.iconSize = 22.0,
this.itemPadding = const EdgeInsets.all(12),
}) : children = const [];