buttonCreateWithoutBorder method
Widget
buttonCreateWithoutBorder(
- dynamic textName,
- dynamic colorsV,
- dynamic fontWeight,
- dynamic fontSizeC,
- dynamic height,
- dynamic width,
Implementation
Widget buttonCreateWithoutBorder(
var textName, var colorsV, var fontWeight, var fontSizeC,var height,var width) {
return Container(
width: getProportionateScreenWidth(width),
height: getProportionateScreenHeight(height),
decoration: BoxDecoration(
color: AppColors.buttonColorTextWithBorder,
borderRadius: BorderRadius.circular(20.r),
),
alignment: Alignment.center,
child: Text(
textName,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: getFontSize(fontSizeC),
fontFamily: "Poppins",
fontWeight: fontWeight,
color: colorsV),
),
);
}