GlassButtonGroup constructor
const
GlassButtonGroup({
- required List<
Widget> children, - Key? key,
- Axis direction = Axis.horizontal,
- LiquidGlassSettings? settings,
- GlassQuality? quality,
- double borderRadius = 16.0,
- Color? borderColor,
- bool useOwnLayer = false,
- bool showDividers = true,
- double iconSize = 22.0,
- 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;