CLGhostButton constructor

const CLGhostButton({
  1. Key? key,
  2. required Color color,
  3. required String text,
  4. ButtonStyle? buttonStyle,
  5. required dynamic onTap(),
  6. required BuildContext context,
  7. required IconAlignment iconAlignment,
  8. IconData? iconData,
  9. Widget? hugeIcon,
  10. bool needConfirmation = false,
  11. String? confirmationMessage,
  12. double? width,
  13. Color? foregroundColor,
  14. bool isCompact = false,
})

Implementation

const CLGhostButton({
  super.key,
  required this.color,
  required this.text,
  this.buttonStyle,
  required this.onTap,
  required this.context,
  required this.iconAlignment,
  this.iconData,
  this.hugeIcon,
  this.needConfirmation = false,
  this.confirmationMessage,
  this.width,
  this.foregroundColor,
  this.isCompact = false,
}) : _colored = false;