Create a state and provide the title parameter in the constructor. Return Scaffold with AppBar provide the title. Scaffold( appBar: AppBar( title: Text(“Video Player”), ), ); Declare body with AspectRatio –> 16:9 you can change accordingly we will be playing a video from the URL.
Read moreHow do you autoplay videos on Flutter?
However you can autoplay it if you mute the volume. Based on this post’s answer, you can use the WidgetsBinding. instance. addPostFrameCallback to autoplay your video .
Read moreWhat is Chewie Flutter?
The video player for Flutter with a heart of gold . The video_player plugin provides low-level access to video playback. Chewie uses the video_player under the hood and wraps it in a friendly Material or Cupertino UI!
Read more