buildPosition method

Widget buildPosition()

Implementation

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