idsButtonStyleWithShadow function
idsButtonStyleWithShadow
Implementation
ButtonStyle idsButtonStyleWithShadow(Color bgColor, double borderRadius,
{double elevation = 4.0}) {
return ElevatedButton.styleFrom(
backgroundColor: bgColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(borderRadius)),
),
elevation: elevation, // Set the elevation to add shadow
);
}