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