buildDuration method

Widget buildDuration()

Implementation

Widget buildDuration() {
  final controller = context.watch<BetterVideoPlayerController>();
  final duration = controller.value.videoPlayerController?.value.duration ?? Duration.zero;
  return Text(
    '${BetterVideoPlayerUtils.formatDuration(duration)}',
    style: TextStyle(
      fontSize: 14,
      color: Colors.white,
      decoration: TextDecoration.none,
    ),
  );
}