video method

Widget video()

Implementation

Widget video() => GestureDetector(
      child: VideoPlayer(_controller),
      onTap: () {
        if (!_controller.value.isInitialized) {
          return;
        }
        if (_controller.value.isPlaying) {
          videoStatusAnimation =
              FadeAnimation(child: const Icon(Icons.pause, size: 100.0));
          _controller.pause();
        } else {
          videoStatusAnimation =
              FadeAnimation(child: const Icon(Icons.play_arrow, size: 100.0));
          _controller.play();
        }
      },
    );