CLButton constructor
const
CLButton({
- Key? key,
- Color? backgroundColor,
- required String text,
- required dynamic onTap(),
- required BuildContext context,
- required IconAlignment iconAlignment,
- IconData? iconData,
- bool needConfirmation = false,
- String? confirmationMessage,
- double? iconSize,
- double? width,
- TextStyle? textStyle,
- Color? iconColor,
- Widget? hugeIcon,
- bool isCompact = false,
- bool enabled = true,
- String? tooltip,
- bool? loading,
- String? semanticLabel,
- bool fullWidth = false,
- bool haptic = true,
- double? borderRadius,
Implementation
const CLButton({
super.key,
this.backgroundColor,
required this.text,
required this.onTap,
required this.context,
required this.iconAlignment,
this.iconData,
this.needConfirmation = false,
this.confirmationMessage,
this.iconSize,
this.width,
this.textStyle,
this.iconColor,
this.hugeIcon,
this.isCompact = false,
this.enabled = true,
this.tooltip,
this.loading,
this.semanticLabel,
this.fullWidth = false,
this.haptic = true,
this.borderRadius,
});