backgroundImage function

Widget backgroundImage()

Implementation

Widget backgroundImage() {
  return Container(
    width: double.infinity,
    height: MahasDimensions.getHeightPercentSize(10),
    decoration: ShapeDecoration(
      color: Colors.transparent,
      shape: SmoothRectangleBorder(
        borderRadius: SmoothBorderRadius.all(
          SmoothRadius(
              cornerRadius: MahasDimensions.getWidthPercentSize(5),
              cornerSmoothing: 0.2),
        ),
      ),
    ),
    child: Center(
      child: getIcon(
        "rocket",
        size: MahasDimensions.getHeightPercentSize(7),
        color: MahasColors.primaryColor,
      ),
    ),
  );
}