CNButton constructor
const
CNButton({
- Key? key,
- required String? label,
- CNSymbol? icon,
- VoidCallback? onPressed,
- bool enabled = true,
- Color? tint,
- IconData? customIcon,
- CNImageAsset? imageAsset,
- 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();