buttonCreateOnlyBorder method
Widget
buttonCreateOnlyBorder(
- dynamic textName,
- dynamic colorsV,
- dynamic fontWeight,
- dynamic fontSizeC,
- dynamic height,
- dynamic width,
Implementation
Widget buttonCreateOnlyBorder(
var textName, var colorsV, var fontWeight, var fontSizeC,var height,var width) {
return Container(
width: getProportionateScreenWidth(width),
height: getProportionateScreenHeight(height),
decoration: BoxDecoration(
color: Colors.transparent,
border: Border.all(color: AppColors.buttonColorTextWithBorder, width: 1),
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),
),
);
}