charityBox_below768 method

Container charityBox_below768(
  1. String image,
  2. String title,
  3. String subTitle,
  4. EdgeInsetsGeometry? margin,
  5. BuildContext context,
)

Implementation

Container charityBox_below768(String image, String title, String subTitle, EdgeInsetsGeometry? margin, BuildContext context) {
  return Container(
    padding: const EdgeInsets.fromLTRB(15, 10, 25, 10),
    margin: margin,
    height: 100.dp,
    decoration: BoxDecoration(
      color: ColorHelper.primaryColor3,
      borderRadius: BorderRadius.circular(16),
    ),
    child: Row(
      children: [
        SvgPicture.asset(image, width: context.x<430? 26:context.x<560? 30:context.x<1100? null:40),
        10.dp.SpaceY,
        Expanded(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Text(
                title,
                textAlign: TextAlign.start,
                style: TextStyle(
                  fontSize: context.x<430? 18.dp:25.dp,
                  fontWeight: FontWeight.w700,
                  color: ColorHelper.white,
                  fontFamily: "SFProDisplay",
                ),
              ),
              const SizedBox(
                height: 0,
              ),
              Flexible(
                child: Text(
                  subTitle,
                  textAlign: TextAlign.start,
                  style: TextStyle(
                    fontSize: context.x<430? 11.dp:13.dp,
                    fontWeight: FontWeight.w400,
                    color: ColorHelper.white,
                    fontFamily: "SFProDisplay",
                  ),
                ),
              ),
            ],
          ),
        ),
      ],
    ),
  );
}