chrome_ai 0.0.10+1 copy "chrome_ai: ^0.0.10+1" to clipboard
chrome_ai: ^0.0.10+1 copied to clipboard

Support for chrome AI in Flutter. This package is a wrapper for the Chrome AI API. It provides a simple way to use the Chrome AI API in Flutter.

60/ 160
pub points
1
downloads

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

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

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

Failed check 0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 3 links are insecure.

README.md:13:5

   ╷
13 │ <li><a href="chrome://flags/#prompt-api-for-gemini-nano">chrome://flags/#prompt-api-for-gemini-nano</a>: <code>Enabled</code></li>
   │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

Use https URLs instead.

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` does not contain reference to the current version ("0.0.10+1").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

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

Detected license: MIT.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

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

2 out of 62 API elements (3.2 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: chrome_ai, chrome_ai.AIModelAvailability, chrome_ai.AIPrompt, chrome_ai.AIPrompt.AIPrompt.new, chrome_ai.AIPrompt.content.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Web

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util
Package not compatible with platform iOS

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util
Package not compatible with platform Windows

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util
Package not compatible with platform Linux

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util
Package not compatible with platform macOS

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util
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 11 issues. Showing the first 2:

ERROR: The method 'promiseToFuture' isn't defined for the type 'ChromeAI'.

lib/chrome_ai.dart:92:28

   ╷
92 │       final result = await promiseToFuture(promise);
   │                            ^^^^^^^^^^^^^^^
   ╵

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

ERROR: The method 'promiseToFuture' isn't defined for the type 'ChromeAI'.

lib/chrome_ai.dart:131:28

    ╷
131 │       final result = await promiseToFuture(promise);
    │                            ^^^^^^^^^^^^^^^
    ╵

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

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

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

Package Constraint Compatible Latest Notes
js ^0.7.1 0.7.2 0.7.2 Discontinued
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.18.1
vector_math - 2.2.0 2.2.0

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

The package has one or more discontinued direct dependencies.

Discontinued packages are no longer maintained, and can end up being a liability.

Consider migrating away from these dependencies:

  • js.

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 8 errors:

  • UNDEFINED_METHOD - lib/chrome_ai.dart:92:28 - The method 'promiseToFuture' isn't defined for the type 'ChromeAI'.
  • UNDEFINED_METHOD - lib/chrome_ai.dart:131:28 - The method 'promiseToFuture' isn't defined for the type 'ChromeAI'.
  • UNDEFINED_METHOD - lib/chrome_ai.dart:142:28 - The method 'promiseToFuture' isn't defined for the type 'ChromeAI'.

Run flutter pub downgrade and then flutter 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.9, Flutter 3.38.9, Dart 3.10.8.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
12
likes
60
points
1
downloads

Publisher

verified publisherjunelee.fun

Weekly Downloads

Support for chrome AI in Flutter. This package is a wrapper for the Chrome AI API. It provides a simple way to use the Chrome AI API in Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, js

More

Packages that depend on chrome_ai