tabItem method

Widget tabItem({
  1. required String title,
  2. required String count,
  3. required TabItemStyle tabItemStyle,
})

Implementation

Widget tabItem(
    {required String title,
    required String count,
    required TabItemStyle tabItemStyle}) {
  return Padding(
    padding: const EdgeInsets.all(12.0),
    child: Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Text(
          title,
          style: tabItemStyle
              .textStyle, //const TextStyle(fontWeight: FontWeight.w700, fontSize: 15),
        ),
        int.parse(count) > 0
            ? Padding(
                padding: const EdgeInsets.symmetric(horizontal: 4.0),
                child: CircleAvatar(
                  backgroundColor: tabItemStyle.countIndicatorStyle.bgColor,
                  radius: 9,
                  child: Text(
                    count.toString(),
                    style: tabItemStyle.countIndicatorStyle
                        .textStyle, //const TextStyle(fontSize: 12, color: Colors.white, fontFamily: 'sf_ui'),
                  ),
                ),
              )
            : const Offstage()
      ],
    ),
  );
}