buttonCreate method
dynamic
buttonCreate(
- dynamic textName,
- dynamic fontSizeC,
- dynamic colorsC,
- dynamic buttonShadowC,
- 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),
),
);
}