vecteezy_downloader 0.0.1
SDKdartflutter
Platformandroidioswindowslinuxmacosweb
Dart library that allows you to download images from Vecteezy with specified quality. It provides functionality to fetch image URLs and download URLs from Vecteezy pages.
Vecteezy Downloader
Vecteezy Downloader is a Dart library that allows you to download images from Vecteezy with specified quality. It provides functionality to fetch image URLs and download URLs from Vecteezy pages.
Features
- Fetch image URLs with their quality from a Vecteezy page.
- Retrieve the download URL for an image from a Vecteezy page.
Usage
Add a dependency in your pubspec.yaml:
dart pub add vecteezy_downloader
# or
flutter pub add vecteezy_downloader
In your library add the following import:
import 'package:vecteezy_downloader/vecteezy_downloader.dart';
Fetch Image URLs
To fetch image URLs with their quality from a Vecteezy page, use the getImages method:
void main() async {
final downloader = VecteezyDownloader();
final images = await downloader.getImages('url');
for (final image in images) {
print('URL: ${image.url}, Quality: ${image.quality}');
}
}
Retrieve Download URL
To retrieve the download URL for an image from a Vecteezy page, use the getDownloadUrl method:
void main() async {
final downloader = VecteezyDownloader();
final downloadUrl = await downloader.getDownloadUrl('url');
if (downloadUrl != null) {
print('Download URL: $downloadUrl');
} else {
print('Failed to retrieve download URL.');
}
}
Contribution
Feel free to file an issue if you find a problem or make pull requests.
All contributions are welcome :)