Furthermore, you must display the VideoPlayer widget after the
_initializeVideoPlayerFuture() completes. Use FutureBuilder to
display a loading spinner until the controller finishes initializing.
Note: initializing the controller does not begin playback.

5. Play and pause the video

By default, the video starts in a paused state. To begin playback,
call the play() method provided by the VideoPlayerController.
To pause playback, call the pause() method.

For this example,
add a FloatingActionButton to your app that displays a play
or pause icon depending on the situation.
When the user taps the button,
play the video if it’s currently paused,
or pause the video if it’s playing.

Complete example

Store key-value data on disk

Take a picture using the camera