CNButton constructor
const
CNButton({
- Key? key,
- required String? label,
- VoidCallback? onPressed,
- bool enabled = true,
- Color? tint,
- double height = 32.0,
- bool shrinkWrap = false,
- CNButtonStyle style = CNButtonStyle.plain,
Creates a text button variant of CNButton.
Implementation
const CNButton({
super.key,
required this.label,
this.onPressed,
this.enabled = true,
this.tint,
this.height = 32.0,
this.shrinkWrap = false,
this.style = CNButtonStyle.plain,
}) : icon = null,
width = null,
round = false;