youtube 1.0.1
youtube: ^1.0.1 copied to clipboard
A package to stream/download youtube video or thumbnail and more.
Download Youtube Videos, Thumbnail and all.
🚀 Thumbnail #
To get youtube thumbnail use YouTubeThumbnail class, with the parameter of youtube video id as string, and than video size.
image function | size |
---|---|
hd | 1280x720 |
standard | 640x480 |
hq | 480x360 |
mq | 320x180 |
defaults | 120x90 |
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()),