CustomContainerButton constructor

const CustomContainerButton({
  1. Key? key,
  2. Function? onTap,
  3. required Color bgColor,
  4. String imgString = '',
  5. required String buttonText,
  6. required double textSize,
  7. Color iconColor = Colors.transparent,
  8. Color imgColor = Colors.transparent,
  9. required Color textColor,
  10. FontWeight fontWeight = FontWeight.w400,
  11. double vertical = 10,
  12. double horizontal = 15,
  13. double size = 14,
  14. double letterSpacing = 0,
  15. TextAlign align = TextAlign.center,
  16. double circleRadius = 15,
  17. double paddingHorizontal = 0,
  18. IconData? icon,
  19. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceAround,
  20. Color borderColor = Colors.transparent,
})

Implementation

const CustomContainerButton({super.key,this.onTap,required this.bgColor,this.imgString='',
  required this.buttonText,required this.textSize,this.iconColor=Colors.transparent,this.imgColor=Colors.transparent,
  required this.textColor,this.fontWeight=FontWeight.w400,this.vertical=10,this.horizontal=15,this.size=14,this.letterSpacing=0,
  this.align=TextAlign.center,this.circleRadius=15,this.paddingHorizontal=0,
  this.icon,this.mainAxisAlignment=MainAxisAlignment.spaceAround,this.borderColor=Colors.transparent});