CLButton.secondary constructor

CLButton.secondary({
  1. required String text,
  2. required dynamic onTap(),
  3. required BuildContext context,
  4. IconAlignment iconAlignment = IconAlignment.start,
  5. IconData? icon,
  6. bool needConfirmation = false,
  7. String? confirmationMessage,
  8. double? iconSize,
  9. double? width,
  10. TextStyle? textStyle,
  11. Color? iconColor,
  12. Widget? hugeIcon,
  13. bool isCompact = false,
})

Implementation

factory CLButton.secondary({
  required String text,
  required Function() onTap,
  required BuildContext context,
  IconAlignment iconAlignment = IconAlignment.start,
  IconData? icon,
  bool needConfirmation = false,
  String? confirmationMessage,
  double? iconSize,
  double? width,
  TextStyle? textStyle,
  Color? iconColor,
  Widget? hugeIcon,
  bool isCompact = false,
}) {
  return CLButton(
    text: text,
    backgroundColor: CLTheme.of(context).secondary,
    onTap: onTap,
    context: context,
    iconAlignment: iconAlignment,
    iconData: icon,
    confirmationMessage: confirmationMessage,
    needConfirmation: needConfirmation,
    iconSize: iconSize,
    width: width,
    textStyle: textStyle,
    iconColor: iconColor,
    hugeIcon: hugeIcon,
    isCompact: isCompact,
  );
}