CButton2 constructor
const
CButton2({
- Key? key,
- required VoidCallback? onPressed,
- Color? textColor,
- TextStyle? textStyle,
- Widget? trailingIcon,
- Widget? leadingIcon,
- bool isDisable = false,
- double? horizontalPadding,
- double? verticalPadding,
- Color? backgroundColor = CColors.primaryA500,
- double? borderRadius,
- required String title,
- double? width,
- bool? isOutlined,
- double? height,
Implementation
const CButton2({
super.key,
required this.onPressed,
this.textColor,
this.textStyle,
this.trailingIcon,
this.leadingIcon,
this.isDisable = false,
this.horizontalPadding,
this.verticalPadding,
this.backgroundColor = CColors.primaryA500,
this.borderRadius,
required this.title,
this.width,
this.isOutlined,
this.height,
});