YouTubeDownloader is a powerful library that enables you to effortlessly download YouTube videos, thumbnails, and other metadata.
Thumbnails
To obtain a YouTube thumbnail, utilize the YouTubeThumbnail class. Supply the YouTube video ID as a string and the desired video size as parameters.
Image Function Size hd 1280×720 standard 640×480 hq 480×360 mq 320×180 defaults 120×90
Example:
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').hd()),
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').standard()),
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').hq()),
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').mq()),
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').small()),
Other Upcoming Features
In the near future, YouTubeDownloader will boast a host of additional features, such as:
- Video downloads
- Metadata retrieval (title, description, tags, etc.)
- Subtitle extraction
- Live stream support
For more information about Flutter and Dart, visit the website.