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