CLGhostButton.danger constructor

CLGhostButton.danger({
  1. required String text,
  2. required dynamic onTap(),
  3. required BuildContext context,
  4. IconAlignment iconAlignment = IconAlignment.start,
  5. bool needConfirmation = false,
  6. String? confirmationMessage,
  7. Color? foregroundColor,
  8. IconData? icon,
  9. Widget? hugeIcon,
  10. double? width,
  11. bool isCompact = false,
})

Implementation

factory CLGhostButton.danger({
  required String text,
  required Function() onTap,
  required BuildContext context,
  IconAlignment iconAlignment = IconAlignment.start,
  bool needConfirmation = false,
  String? confirmationMessage,
  Color? foregroundColor,
  IconData? icon,
  Widget? hugeIcon,
  double? width,
  bool isCompact = false,
}) {
  return CLGhostButton._colored(
    context: context,
    text: text,
    color: CLTheme.of(context).danger,
    onTap: onTap,
    iconAlignment: iconAlignment,
    iconData: icon,
    hugeIcon: hugeIcon,
    width: width,
    foregroundColor: foregroundColor,
    confirmationMessage: confirmationMessage,
    needConfirmation: needConfirmation,
    isCompact: isCompact,
  );
}