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 moreHow do you play local videos on Flutter?
Flutter – Playing local, network and youtube videos with video player plugin.
Read moreHow do you put videos on Flutter?
In Flutter, videos are handled through the use of video_player plugin.
Read more