singleItemTile method

Widget singleItemTile(
  1. String text,
  2. String image,
  3. bool isSelected, [
  4. bool isSvg = false,
])

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,
                ),
              ))
        ],
      ));
}