callLogTime function

Widget callLogTime(
  1. String time,
  2. int? callState,
  3. TextStyle? textStyle
)

Implementation

Widget callLogTime(String time, int? callState, TextStyle? textStyle) {
  return Row(
    children: [
      callState == 0
          ? AppUtils.svgIcon(
              icon: arrowDropDown,
              colorFilter: const ColorFilter.mode(Colors.red, BlendMode.srcIn),
            )
          : callState == 1
              ? AppUtils.svgIcon(
                  icon: arrowUpIcon,
                  colorFilter:
                      const ColorFilter.mode(Colors.green, BlendMode.srcIn),
                )
              : AppUtils.svgIcon(
                  icon: arrowDownIcon,
                  colorFilter:
                      const ColorFilter.mode(Colors.green, BlendMode.srcIn),
                ),
      const SizedBox(
        width: 5,
      ),
      Text(
        time,
        style: textStyle,
        // style: const TextStyle(color: Colors.black),
      ),
    ],
  );
}