CLButton.secondary constructor
CLButton.secondary({
- required String text,
- required dynamic 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,
- bool enabled = true,
- String? tooltip,
- bool? loading,
- String? semanticLabel,
- bool fullWidth = false,
- bool haptic = true,
- double? borderRadius,
- List<
BoxShadow> ? boxShadow, - BoxBorder? border,
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,
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).secondary,
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,
);