CLButton constructor

const CLButton({
  1. Key? key,
  2. Color? backgroundColor,
  3. required String text,
  4. required dynamic onTap(),
  5. required BuildContext context,
  6. required IconAlignment iconAlignment,
  7. IconData? iconData,
  8. bool needConfirmation = false,
  9. String? confirmationMessage,
  10. double? iconSize,
  11. double? width,
  12. TextStyle? textStyle,
  13. Color? iconColor,
  14. Widget? hugeIcon,
  15. bool isCompact = false,
  16. bool enabled = true,
  17. String? tooltip,
  18. bool? loading,
  19. String? semanticLabel,
  20. bool fullWidth = false,
  21. bool haptic = true,
  22. 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,
});