CustomButton constructor

const CustomButton({
  1. Key? key,
  2. IconData? icon,
  3. required String text,
  4. VoidCallback? onPressed,
  5. double? width,
  6. double? fontSize = 16,
  7. Color? fontColor = Colors.white,
  8. FontWeight? fontWeight = FontWeight.w700,
  9. Color? backgroundColor = CustomLightTheme.primaryColor,
  10. double? borderRadius = 14,
  11. Color? borderColor = CustomLightTheme.primaryColor,
  12. double buttonElevation = 0,
  13. double internalHorizontalPadding = 16,
  14. double internalVerticalPadding = 10,
  15. 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);