stability_ai_dart 0.0.1 copy "stability_ai_dart: ^0.0.1" to clipboard
stability_ai_dart: ^0.0.1 copied to clipboard

A comprehensive Dart library for the Stability AI REST API. Supports text-to-image, upscaling, and SD 3.0/3.5.

70/ 160
pub points
40
downloads

We analyzed this package 18 hours ago, and awarded it 70 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

142 out of 218 API elements (65.1 %) have documentation comments.

Some symbols that are missing documentation: stability_ai_dart.Artifact.Artifact.fromJson, stability_ai_dart.Artifact.Artifact.new, stability_ai_dart.Artifact.toJson, stability_ai_dart.CoreImageBytes.CoreImageBytes.new, stability_ai_dart.CoreImageBytes.bytes.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
0 / 20trigger folding of the section

Failed check 0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

Found 41 issues. Showing the first 2:

ERROR: Target of URI hasn't been generated: 'package:stability_ai_dart/src/models/models.g.dart'.

lib/src/models/models.dart:5:6

  ╷
5 │ part 'models.g.dart';
  │      ^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/models/models.dart

ERROR: The method '_$EngineFromJson' isn't defined for the type 'Engine'.

lib/src/models/models.dart:66:57

   ╷
66 │   factory Engine.fromJson(Map<String, dynamic> json) => _$EngineFromJson(json);
   │                                                         ^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/models/models.dart

Failed report section
Support up-to-date dependencies
20 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
http ^1.1.0 1.6.0 1.6.0
http_parser ^4.0.2 4.1.2 4.1.2
json_annotation ^4.9.0 4.11.0 4.11.0
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
collection - 1.19.1 1.19.1
meta - 1.18.2 1.18.2
path - 1.9.1 1.9.1
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
web - 1.1.1 1.1.1

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

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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 41 errors:

  • URI_HAS_NOT_BEEN_GENERATED - lib/src/models/models.dart:5:6 - Target of URI hasn't been generated: 'package:stability_ai_dart/src/models/models.g.dart'.
  • UNDEFINED_METHOD - lib/src/models/models.dart:66:57 - The method '_$EngineFromJson' isn't defined for the type 'Engine'.
  • UNDEFINED_METHOD - lib/src/models/models.dart:67:36 - The method '_$EngineToJson' isn't defined for the type 'Engine'.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.11, Dart 3.11.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
70
points
40
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A comprehensive Dart library for the Stability AI REST API. Supports text-to-image, upscaling, and SD 3.0/3.5.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http, http_parser, json_annotation

More

Packages that depend on stability_ai_dart