shadertoy_client 1.0.0-dev.8

Dart native
Flutter Android iOS

An http client implementation of the shadertoy API using Dio Http client. Supports the REST API (using an application key) and the Site API (registered and anonymous users)

0
likes
85 / 110
pub points
23 %
popularity

We analyzed this package on Sep 25, 2020, and awarded it 85 pub points (of a possible 110):

Follow Dart file conventions
15 / 20

10/10 points: Provide a valid pubspec.yaml

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 link is insecure.

README.md:300:49

    ╷
300 │ <p>Please file feature requests and bugs at the <a href="http://github.com/ivoleitao/shadertoy_client/issues/new">issue tracker</a>.</p>
    │                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/example.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 97 out of 97 API elements (100.0 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime js

Because:

  • package:shadertoy_client/shadertoy_client.dart that imports:
  • package:shadertoy_client/src/ws/ws_client.dart that imports:
  • package:shadertoy_client/src/base_client.dart that imports:
  • package:dio_cookie_manager/dio_cookie_manager.dart that imports:
  • package:dio_cookie_manager/src/cookie_mgr.dart that imports:
  • package:cookie_jar/cookie_jar.dart that imports:
  • package:cookie_jar/src/serializable_cookie.dart that imports:
  • dart:io
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

INFO: 'parse' is deprecated and shouldn't be used. Renamed function to EnumToString.convertToString to make it clearer.

lib/src/site/site_client.dart:276:48

    ╷
276 │       queryParameters.add('sort=${EnumToString.parse(sort)}');
    │                                                ^^^^^
    ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/site/site_client.dart

INFO: 'parse' is deprecated and shouldn't be used. Renamed function to EnumToString.convertToString to make it clearer.

lib/src/site/site_client.dart:425:48

    ╷
425 │       queryParameters.add('sort=${EnumToString.parse(sort)}');
    │                                                ^^^^^
    ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/site/site_client.dart

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
cookie_jar^1.0.11.0.11.0.1
dio^3.0.93.0.103.0.10
dio_cookie_manager^1.0.01.0.01.0.0
dotenv^2.0.02.0.02.0.0
enum_to_string^1.0.91.0.131.0.13
equatable^1.2.01.2.51.2.5
html^0.14.0+30.14.0+30.14.0+3
intl^0.16.10.16.10.16.1
json_annotation^3.0.13.1.03.1.0
meta^1.1.81.2.31.2.3
path^1.7.01.7.01.7.0
pool^1.4.01.4.01.4.0
retry^3.0.0+13.0.13.0.1
shadertoy_api^1.0.21.0.41.0.4
Transitive dependencies
PackageConstraintCompatibleLatest
args-1.6.01.6.0
async-2.4.22.4.2
charcode-1.1.31.1.3
collection-1.14.131.14.13
csslib-0.16.20.16.2
dart2_constant-1.0.2+dart21.0.2+dart2
http_parser-3.1.43.1.4
source_span-1.7.01.7.0
stack_trace-1.9.51.9.5
string_scanner-1.0.51.0.5
term_glyph-1.1.01.1.0
typed_data-1.2.01.2.0

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

0
likes
85
pub points
23%
popularity

Publisher

ivoleitao.dev

An http client implementation of the shadertoy API using Dio Http client. Supports the REST API (using an application key) and the Site API (registered and anonymous users)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

cookie_jar, dio, dio_cookie_manager, dotenv, enum_to_string, equatable, html, intl, json_annotation, meta, path, pool, retry, shadertoy_api

More

Packages that depend on shadertoy_client