CNPullDownButtonAnchor.icon constructor
const
CNPullDownButtonAnchor.icon({
- Key? key,
- required CNSymbol? buttonIcon,
- required List<
CNPullDownMenuEntry> items, - required ValueChanged<
int> onSelected, - Color? tint,
- double size = 44.0,
- CNButtonStyle buttonStyle = CNButtonStyle.glass,
- Alignment alignment = Alignment.center,
Creates a round, icon-only pull-down button with automatic anchoring.
Implementation
const CNPullDownButtonAnchor.icon({
super.key,
required this.buttonIcon,
required this.items,
required this.onSelected,
this.tint,
double size = 44.0,
this.buttonStyle = CNButtonStyle.glass,
this.menuTitle,
this.alignment = Alignment.center,
}) : buttonLabel = null,
round = true,
width = size,
height = size;