getAudioUI method

Widget getAudioUI()

Implementation

Widget getAudioUI() {
  if (widget.data.isSender!) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.end,
      mainAxisSize: MainAxisSize.min,
      children: [
        Text(
          '${widget.duration}s',
        ),
        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,
        ),
        Text(
          '${widget.duration}s',
        ),
      ],
    );
  }
}