CustomButton constructor
const
CustomButton({
- Key? key,
- IconData? icon,
- required String text,
- VoidCallback? onPressed,
- double? width,
- double? fontSize = 16,
- Color? fontColor = Colors.white,
- FontWeight? fontWeight = FontWeight.w700,
- Color? backgroundColor = CustomLightTheme.primaryColor,
- double? borderRadius = 14,
- Color? borderColor = CustomLightTheme.primaryColor,
- double buttonElevation = 0,
- double internalHorizontalPadding = 16,
- double internalVerticalPadding = 10,
- bool? rightIcon = false,
Implementation
const CustomButton(
{Key? key,
this.icon,
required this.text,
this.onPressed,
this.width,
this.fontSize = 16,
this.fontColor = Colors.white,
this.fontWeight = FontWeight.w700,
this.backgroundColor = CustomLightTheme.primaryColor,
this.borderRadius = 14,
this.borderColor = CustomLightTheme.primaryColor,
this.buttonElevation = 0,
this.internalHorizontalPadding = 16,
this.internalVerticalPadding = 10,
this.rightIcon = false})
: super(key: key);