Dart wrapper for cloudinary apis.
CloudinaryClient client = new CloudinaryClient(<API_KEY, <API_SECRET>, <cloud_name>); Response response = await client.uploadImage(<imagepath>, <filename>); print(response);
[0.0.1] - 20 July 2019.
[0.0.2] - changed text on readme
[0.0.3] - fixed "NoSuchMethodError: The method '+' was called on null.
Receiver: null Tried calling: +("public_id=")"
[0.0.4] - fix to handle public id correctly
[0.0.5] - using StringBuffer to create signature
[0.0.6] - added path separator in base url
[0.0.7] - added cloudinary response model, added method to upload multiple images (using loop, will be updated using cloudinary api support)
[0.0.8] - fixed parsing error for cloudinary response
[0.0.9] - fixed asyc/await issue caused by using forEach loop.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: cloudinary_client: ^0.0.9
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.1
- pana: 0.13.5
Health issues and suggestions
Document public APIs. (-1 points)
56 out of 56 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
lib/data/ImageClient.dart. (-2.48 points)
lib/data/ImageClient.dart reported 5 hints:
line 2 col 8: Unused import: 'dart:io'.
line 22 col 21: Unnecessary new keyword.
line 24 col 35: Unnecessary new keyword.
line 56 col 25: Unnecessary new keyword.
line 70 col 18: Unnecessary new keyword.
lib/data/BaseApi.dart. (-1.99 points)
lib/data/BaseApi.dart reported 4 hints:
line 23 col 7: DO use curly braces for all flow control structures.
line 25 col 7: DO use curly braces for all flow control structures.
line 32 col 7: DO use curly braces for all flow control structures.
line 34 col 7: DO use curly braces for all flow control structures.
lib/cloudinary_client.dart. (-0.50 points)
lib/cloudinary_client.dart reported 1 hint:
line 4 col 8: Unused import: 'package:dio/dio.dart'.
lib/models/CloudinaryResponse.dart. (-0.50 points)
lib/models/CloudinaryResponse.dart reported 1 hint:
line 39 col 39: Unnecessary new keyword.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
cloudinary_client.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.
|Dart SDK||>=2.1.0 <3.0.0|