singleItemTile method
Implementation
Widget singleItemTile(String text, String image, bool isSelected, [bool isSvg = false]) {
return Container(
padding: const EdgeInsets.symmetric(vertical: 18),
child: Column(
children: [
if (isSvg)
SvgPicture.asset(
image,
width: 20,
height: 20,
),
if (!isSvg)
Image.asset(
image,
height: 20,
),
10.SpaceX,
DefaultTextStyle(
style: const TextStyle(
color: ColorHelper.black02,
fontSize: 11,
),
child: Text(
text,
style: TextStyle(
fontWeight: FontWeight.w400,
color: isSelected
? ColorHelper.primaryColor2
: ColorHelper.black02,
fontSize: 11,
),
))
],
));
}