Playing videos is a common task in app development, and Flutter apps are no exception. To play videos, the Flutter team provides the video_player plugin.
Read moreHow do you play YouTube on Flutter?
First of all, add the YoutubePlayer widget to display video in your Flutter application . showVideoProgressIndicator – to true to display a progress bar at the time of buffering. initialVideoId – add YouTube ID to display video. The plugin also provides a method to extract the video-id from the URL.
Read more