CNPopupMenuButton.icon constructor

const CNPopupMenuButton.icon({
  1. Key? key,
  2. required CNSymbol? buttonIcon,
  3. required List<CNPopupMenuEntry> items,
  4. required ValueChanged<int> onSelected,
  5. Color? tint,
  6. double size = 44.0,
  7. CNButtonStyle buttonStyle = CNButtonStyle.glass,
})

Creates a round, icon-only popup menu button.

Implementation

const CNPopupMenuButton.icon({
  super.key,
  required this.buttonIcon,
  required this.items,
  required this.onSelected,
  this.tint,
  double size = 44.0, // button diameter (width = height)
  this.buttonStyle = CNButtonStyle.glass,
}) : buttonLabel = null,
     round = true,
     width = size,
     height = size,
     shrinkWrap = false,
     super();