GlassButtonGroup.icons constructor

const GlassButtonGroup.icons({
  1. required List<GlassGroupItem> items,
  2. Key? key,
  3. Axis direction = Axis.horizontal,
  4. LiquidGlassSettings? settings,
  5. GlassQuality? quality,
  6. double borderRadius = 22.0,
  7. Color? borderColor,
  8. bool useOwnLayer = false,
  9. bool showDividers = false,
  10. double iconSize = 22.0,
  11. 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 [];