generate_ai_dart 0.0.1
generate_ai_dart: ^0.0.1 copied to clipboard
dart package for gemini api
We analyzed this package 2 days ago, and awarded it 120 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too short.
Add more detail to the description
field of pubspec.yaml
. Use 50 to 180 characters to describe the package, what it does, and its target use case.
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: BSD-2-Clause
.
10/10 points: 20% or more of the public API has dartdoc comments
105 out of 383 API elements (27.4 %) have documentation comments.
Some symbols that are missing documentation: APIController
, APIController.APIController
, APIController.APIController.APIController.new
, APIController.APIController.countTokens
, APIController.APIController.generateContent
.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
0/0 points: WASM compatibility
This package is compatible with runtime wasm
, and will be rewarded additional points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 58 issues. Showing the first 2:
WARNING: This default clause is covered by the previous cases.
lib/internal/api/shared/Types.dart:20:7
╷
20 │ default: return 'UNKNOWN';
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/internal/api/shared/Types.dart
WARNING: The matched value type 'InternalFinishReason' can never be equal to this constant of type 'Null'.
lib/internal/utils/conversions.dart:245:12
╷
245 │ case null:
│ ^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/internal/utils/conversions.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
dio |
^5.4.0 |
5.8.0+1 | 5.8.0+1 | |
image_compression_flutter |
^1.0.3 |
1.0.4 | 1.0.4 | |
mutex |
^3.1.0 |
3.1.0 | 3.1.0 | |
rxdart |
^0.27.7 |
0.27.7 | 0.28.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
archive |
- | 4.0.7 | 4.0.7 | |
async |
- | 2.13.0 | 2.13.0 | |
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
cross_file |
- | 0.3.4+2 | 0.3.4+2 | |
crypto |
- | 3.0.6 | 3.0.6 | |
dio_web_adapter |
- | 2.1.1 | 2.1.1 | |
ffi |
- | 2.1.4 | 2.1.4 | |
flutter_image_compress |
- | 2.4.0 | 2.4.0 | |
flutter_image_compress_common |
- | 1.0.6 | 1.0.6 | |
flutter_image_compress_macos |
- | 1.0.3 | 1.0.3 | |
flutter_image_compress_ohos |
- | 0.0.3 | 0.0.3 | |
flutter_image_compress_platform_interface |
- | 1.0.5 | 1.0.5 | |
flutter_image_compress_web |
- | 0.1.5 | 0.1.5 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
image |
- | 4.5.4 | 4.5.4 | |
image_compression |
- | 1.0.5 | 1.0.5 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.16.0 | 1.17.0 | |
mime |
- | 1.0.6 | 2.0.0 | |
path |
- | 1.9.1 | 1.9.1 | |
petitparser |
- | 6.1.0 | 7.0.0 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
posix |
- | 6.0.3 | 6.0.3 | |
source_span |
- | 1.10.1 | 1.10.1 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.1.4 | 2.2.0 | |
web |
- | 1.1.1 | 1.1.1 | |
xml |
- | 6.5.0 | 6.6.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^0.27.7` on rxdart does not support the stable version `0.28.0`.
Try running dart pub upgrade --major-versions rxdart
to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade
does not expose any static analysis error.
Analyzed with Pana 0.22.21
, Flutter 3.32.4
, Dart 3.8.1
.
Check the analysis log for details.