buttonCreate method

dynamic buttonCreate(
  1. dynamic textName,
  2. dynamic fontSizeC,
  3. dynamic colorsC,
  4. dynamic buttonShadowC,
  5. dynamic testColor,
)

Implementation

buttonCreate(
    var textName, var fontSizeC, var colorsC, var buttonShadowC, testColor) {
  return Container(
    width: getProportionateScreenWidth(140),
    height: getProportionateScreenHeight(35),
    margin: const EdgeInsets.only(right: 0),
    decoration: BoxDecoration(
      boxShadow: [
        BoxShadow(
            color: buttonShadowC,
            offset: const Offset(0, 3),
            blurRadius: 0,
            spreadRadius: 0)
      ],
      color: colorsC,
      borderRadius: BorderRadius.circular(10.r),
    ),
    alignment: Alignment.center,
    child: Text(
      textName,
      textAlign: TextAlign.center,
      textScaleFactor: 1.0,
      style: TextStyle(
          fontSize: getFontSize(fontSizeC),
          fontFamily: "Poppins",
          fontWeight: FontWeight.w900,
          color: testColor),
    ),
  );
}