CNPullDownButtonAnchor.icon constructor

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