CNButton constructor

const CNButton({
  1. Key? key,
  2. required String? label,
  3. CNSymbol? icon,
  4. VoidCallback? onPressed,
  5. bool enabled = true,
  6. Color? tint,
  7. IconData? customIcon,
  8. CNImageAsset? imageAsset,
  9. CNButtonConfig config = const CNButtonConfig(),
})

Creates a text button variant of CNButton.

Can optionally include an icon to create a button with both text and icon.

Implementation

const CNButton({
  super.key,
  required this.label,
  this.icon,
  this.onPressed,
  this.enabled = true,
  this.tint,
  this.customIcon,
  this.imageAsset,
  this.config = const CNButtonConfig(),
}) : super();