getAudioUI method

Widget getAudioUI()

Implementation

Widget getAudioUI() {
  if (widget.data.isSender!) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.end,
      mainAxisSize: MainAxisSize.min,
      children: [
        const Text(
          '10s',
          style: TextStyle(fontSize: 14),
        ),
        Image.asset(
          isPlaying ? toAniList[aniIndex] : toAniList[2],
          width: 28,
          height: 28,
        ),
      ],
    );
  } else {
    return Row(
      mainAxisAlignment: MainAxisAlignment.start,
      children: [
        Image.asset(
          isPlaying ? fromAniList[aniIndex] : fromAniList[2],
          width: 28,
          height: 28,
        ),
        const Text(
          '10s',
          style: TextStyle(fontSize: 14),
        ),
      ],
    );
  }
}