CNPullDownButtonAnchor constructor

const CNPullDownButtonAnchor({
  1. Key? key,
  2. required String? buttonLabel,
  3. required List<CNPullDownMenuEntry> items,
  4. required ValueChanged<int> onSelected,
  5. Color? tint,
  6. double height = 44.0,
  7. double? width,
  8. CNButtonStyle buttonStyle = CNButtonStyle.plain,
  9. String? menuTitle,
  10. 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;