CustomContainerButton constructor
const
CustomContainerButton({
- Key? key,
- Function? onTap,
- required Color bgColor,
- String imgString = '',
- required String buttonText,
- required double textSize,
- Color iconColor = Colors.transparent,
- Color imgColor = Colors.transparent,
- required Color textColor,
- FontWeight fontWeight = FontWeight.w400,
- double vertical = 10,
- double horizontal = 15,
- double size = 14,
- double letterSpacing = 0,
- TextAlign align = TextAlign.center,
- double circleRadius = 15,
- double paddingHorizontal = 0,
- IconData? icon,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceAround,
- 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});