GlassButtonGroup constructor

const GlassButtonGroup({
  1. required List<Widget> children,
  2. Key? key,
  3. Axis direction = Axis.horizontal,
  4. LiquidGlassSettings? settings,
  5. GlassQuality? quality,
  6. double borderRadius = 16.0,
  7. Color? borderColor,
  8. bool useOwnLayer = false,
  9. bool showDividers = true,
  10. double iconSize = 22.0,
  11. EdgeInsetsGeometry itemPadding = const EdgeInsets.all(12),
})

Creates a group of glass buttons from widget children.

Children should be GlassButtons with GlassButtonStyle.transparent. For a lighter-weight alternative, use GlassButtonGroup.icons.

Implementation

const GlassButtonGroup({
  required this.children,
  super.key,
  this.direction = Axis.horizontal,
  this.settings,
  this.quality,
  this.borderRadius = 16.0,
  this.borderColor,
  this.useOwnLayer = false,
  this.showDividers = true,
  this.iconSize = 22.0,
  this.itemPadding = const EdgeInsets.all(12),
}) : items = null;