cloudinary_client 0.0.9

cloudinary_client #

Dart wrapper for cloudinary apis.

usage #

CloudinaryClient client = new CloudinaryClient(<API_KEY, <API_SECRET>, <cloud_name>);
Response response = await client.uploadImage(<imagepath>, <filename>);

[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:

  cloudinary_client: ^0.0.9

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ 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:

import 'package:cloudinary_client/cloudinary_client.dart';
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]
Learn more about scoring.

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.

Fix lib/data/ImageClient.dart. (-2.48 points)

Analysis of 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.

Fix lib/data/BaseApi.dart. (-1.99 points)

Analysis of 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.

Fix lib/cloudinary_client.dart. (-0.50 points)

Analysis of lib/cloudinary_client.dart reported 1 hint:

line 4 col 8: Unused import: 'package:dio/dio.dart'.

Fix lib/models/CloudinaryResponse.dart. (-0.50 points)

Analysis of lib/models/CloudinaryResponse.dart reported 1 hint:

line 39 col 39: Unnecessary new keyword.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and cloudinary_client.dart. Packages with multiple examples should provide example/

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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
crypto ^2.0.6 2.1.4
dio ^3.0.2 3.0.8
Transitive dependencies
charcode 1.1.3
collection 1.14.12
convert 2.1.1
http_parser 3.1.3
meta 1.1.8
path 1.6.4
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6