CLButton.info constructor

CLButton.info({
  1. required String text,
  2. required dynamic onTap(),
  3. required BuildContext context,
  4. double? iconSize,
  5. IconAlignment iconAlignment = IconAlignment.start,
  6. IconData? icon,
  7. bool needConfirmation = false,
  8. String? confirmationMessage,
  9. double? width,
  10. TextStyle? textStyle,
  11. Color? iconColor,
  12. Widget? hugeIcon,
  13. bool isCompact = false,
  14. bool enabled = true,
  15. String? tooltip,
  16. bool? loading,
  17. String? semanticLabel,
  18. bool fullWidth = false,
  19. bool haptic = true,
  20. double? borderRadius,
  21. List<BoxShadow>? boxShadow,
  22. BoxBorder? border,
})

Implementation

factory CLButton.info({
  required String text,
  required Function() onTap,
  required BuildContext context,
  double? iconSize,
  IconAlignment iconAlignment = IconAlignment.start,
  IconData? icon,
  bool needConfirmation = false,
  String? confirmationMessage,
  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,
  List<BoxShadow>? boxShadow,
  BoxBorder? border,
}) =>
    _fromColor(
      context: context,
      color: CLTheme.of(context).info,
      text: text,
      onTap: onTap,
      iconAlignment: iconAlignment,
      icon: icon,
      needConfirmation: needConfirmation,
      confirmationMessage: confirmationMessage,
      iconSize: iconSize,
      width: width,
      textStyle: textStyle,
      iconColor: iconColor,
      hugeIcon: hugeIcon,
      isCompact: isCompact,
      enabled: enabled,
      tooltip: tooltip,
      loading: loading,
      semanticLabel: semanticLabel,
      fullWidth: fullWidth,
      haptic: haptic,
      borderRadius: borderRadius,
      boxShadow: boxShadow,
      border: border,
    );