charityBox method
Implementation
Container charityBox(String image, String title, String subTitle,
EdgeInsetsGeometry? margin, BuildContext context) {
return Container(
padding: const EdgeInsets.all(5),
margin: margin,
height: 270,
decoration: BoxDecoration(
color: ColorHelper.primaryColor3,
borderRadius: BorderRadius.circular(16),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SvgPicture.asset('assets/home/$image.svg',
width: context.x < 1100 ? null : 60),
const SizedBox(
height: 28,
),
Text(
title,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 46.dp,
fontWeight: FontWeight.w700,
color: ColorHelper.white,
fontFamily: "SFProDisplay",
),
),
const SizedBox(
height: 15,
),
Text(
subTitle,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 17.dp,
fontWeight: FontWeight.w400,
color: ColorHelper.white,
fontFamily: "SFProDisplay",
),
),
],
),
);
}