js_widget_runtime 0.4.109 copy "js_widget_runtime: ^0.4.109" to clipboard
js_widget_runtime: ^0.4.109 copied to clipboard

Run JavaScript widgets as Flutter widgets using QuickJS (VM) or Web Workers (web).

110/ 160
pub points
3.44k
downloads

We analyzed this package 8 hours ago, and awarded it 110 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

344 out of 499 API elements (68.9 %) have documentation comments.

Some symbols that are missing documentation: js_widget_runtime.AssetWidgetFileReader.AssetWidgetFileReader.new, js_widget_runtime.AssetWidgetFileReader.basePath, js_widget_runtime.AssetWidgetFileReader.readString, js_widget_runtime.Cube3dController.config, js_widget_runtime.Cube3dController.onSceneCreated.

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)

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:js_widget_runtime/js_widget_runtime.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/flame_3d_host.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/js_3d_host_utils.dart that imports:
  • package:flame_3d/resources.dart that imports:
  • package:flame_3d/src/resources/texture.dart that imports:
  • package:flame_3d/src/resources/texture/texture.dart that imports:
  • package:flame_3d/graphics.dart that imports:
  • package:flame_3d/src/graphics/graphics_device.dart that imports:
  • package:flame_3d/src/graphics/backend/gpu_backend.dart that imports:
  • package:flame_3d/src/graphics/backend/flutter_gpu/gpu_backend.dart that imports:
  • package:flutter_gpu/gpu.dart that imports:
  • dart:nativewrappers
Package not compatible with platform iOS

Because:

  • package:js_widget_runtime/js_widget_runtime.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/flame_3d_host.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/js_3d_host_utils.dart that imports:
  • package:flame_3d/resources.dart that imports:
  • package:flame_3d/src/resources/texture.dart that imports:
  • package:flame_3d/src/resources/texture/texture.dart that imports:
  • package:flame_3d/graphics.dart that imports:
  • package:flame_3d/src/graphics/graphics_device.dart that imports:
  • package:flame_3d/src/graphics/backend/gpu_backend.dart that imports:
  • package:flame_3d/src/graphics/backend/flutter_gpu/gpu_backend.dart that imports:
  • package:flutter_gpu/gpu.dart that imports:
  • dart:nativewrappers
Package not compatible with platform Windows

Because:

  • package:js_widget_runtime/js_widget_runtime.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/flame_3d_host.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/js_3d_host_utils.dart that imports:
  • package:flame_3d/resources.dart that imports:
  • package:flame_3d/src/resources/texture.dart that imports:
  • package:flame_3d/src/resources/texture/texture.dart that imports:
  • package:flame_3d/graphics.dart that imports:
  • package:flame_3d/src/graphics/graphics_device.dart that imports:
  • package:flame_3d/src/graphics/backend/gpu_backend.dart that imports:
  • package:flame_3d/src/graphics/backend/flutter_gpu/gpu_backend.dart that imports:
  • package:flutter_gpu/gpu.dart that imports:
  • dart:nativewrappers
Package not compatible with platform Linux

Because:

  • package:js_widget_runtime/js_widget_runtime.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/flame_3d_host.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/js_3d_host_utils.dart that imports:
  • package:flame_3d/resources.dart that imports:
  • package:flame_3d/src/resources/texture.dart that imports:
  • package:flame_3d/src/resources/texture/texture.dart that imports:
  • package:flame_3d/graphics.dart that imports:
  • package:flame_3d/src/graphics/graphics_device.dart that imports:
  • package:flame_3d/src/graphics/backend/gpu_backend.dart that imports:
  • package:flame_3d/src/graphics/backend/flutter_gpu/gpu_backend.dart that imports:
  • package:flutter_gpu/gpu.dart that imports:
  • dart:nativewrappers
Package not compatible with platform macOS

Because:

  • package:js_widget_runtime/js_widget_runtime.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/flame_3d_host.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/js_3d_host_utils.dart that imports:
  • package:flame_3d/resources.dart that imports:
  • package:flame_3d/src/resources/texture.dart that imports:
  • package:flame_3d/src/resources/texture/texture.dart that imports:
  • package:flame_3d/graphics.dart that imports:
  • package:flame_3d/src/graphics/graphics_device.dart that imports:
  • package:flame_3d/src/graphics/backend/gpu_backend.dart that imports:
  • package:flame_3d/src/graphics/backend/flutter_gpu/gpu_backend.dart that imports:
  • package:flutter_gpu/gpu.dart that imports:
  • dart:nativewrappers
Package not compatible with platform Web

Because:

  • package:js_widget_runtime/js_widget_runtime.dart that imports:
  • package:js_widget_runtime/src/renderer/nodes/hosts/cube_3d_host.dart that imports:
  • package:flutter_cube/flutter_cube.dart that imports:
  • package:flutter_cube/src/material.dart that imports:
  • dart:io
Failed report section
Pass static analysis
30 / 50trigger folding of the section

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

WARNING: A value for optional parameter 'key' isn't ever given.

lib/src/renderer/nodes/hosts/flame_3d_host.dart:978:35

    ╷
978 │   const _Flame3dGameWidget({super.key, required this.controller});
    │                                   ^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/renderer/nodes/hosts/flame_3d_host.dart

WARNING: The member 'debugStopTimers' can only be used within 'package:js_widget_runtime/src/runtime/js_widget_bridge.dart' or a test.

lib/src/runtime/js_widget_engine_quickjs.dart:236:13

    ╷
236 │     _bridge.debugStopTimers();
    │             ^^^^^^^^^^^^^^^
    ╵

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

Failed report section
Support up-to-date dependencies
30 / 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
fl_chart ^1.2.0 1.2.0 1.2.0
flame ^1.38.0 1.38.2 1.38.2
flame_3d ^0.3.0 0.3.0 0.3.0
flutter_cube ^0.1.1 0.1.1 0.1.1
flutter_js ^0.8.7 0.8.7 0.8.7
flutter_map ^8.2.2 8.3.2 8.3.2
flutter_markdown_plus ^1.0.7 1.0.12 1.0.12
flutter_svg ^2.3.0 2.3.0 2.3.0
latlong2 ^0.9.1 0.9.1 0.10.1
path ^1.9.1 1.9.1 1.9.1
path_provider ^2.1.3 2.1.6 2.1.6
quickjs_runtime ^0.1.0 0.1.1 0.1.1
shared_preferences ^2.5.3 2.5.5 2.5.5
vector_math ^2.1.4 2.4.2 2.4.2
web ^1.1.1 1.1.1 1.1.1
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 4.2.0 4.2.0
args - 2.7.0 2.7.0
async - 2.13.1 2.13.1
characters - 1.4.1 1.4.1
clock - 1.1.3 1.1.3
code_assets - 2.0.0 2.0.0
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
dart_earcut - 1.2.0 1.2.0
dart_polylabel2 - 1.0.0 1.0.0
equatable - 2.1.0 2.1.0
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
fixnum - 1.1.1 1.1.1
hooks - 2.2.0 2.2.0
http - 1.6.0 1.6.0
http_parser - 4.1.2 4.1.2
intl - 0.20.3 0.20.3
jni - 1.0.3 1.0.3
jni_flutter - 1.0.3 1.0.3
jni_util - 1.0.0 1.0.0
logging - 1.3.0 1.3.0
markdown - 7.3.1 7.3.1
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
mgrs_dart - 3.0.0 3.0.0
objective_c - 9.6.0 9.6.0
ordered_set - 8.0.1 8.0.1
package_config - 3.0.0 3.0.0
path_parsing - 1.1.0 1.1.0
path_provider_android - 2.3.1 2.3.1
path_provider_foundation - 2.6.0 2.6.0
path_provider_linux - 2.2.2 2.2.2
path_provider_platform_interface - 2.1.3 2.1.3
path_provider_windows - 2.3.0 2.3.0
petitparser - 7.0.2 7.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
posix - 6.5.2 6.5.2
proj4dart - 3.0.0 3.0.0
pub_semver - 2.2.1 2.2.1
record_use - 1.1.1 1.1.1
shared_preferences_android - 2.4.28 2.4.28
shared_preferences_foundation - 2.5.7 2.5.7
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.2 2.4.2
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
simple_sparse_list - 0.1.4 0.1.4
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
sync_http - 0.3.1 0.3.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
unicode - 1.1.9 1.1.9
uuid - 4.6.0 4.6.0
vector_graphics - 1.2.3 1.2.3
vector_graphics_codec - 1.1.13 1.1.13
vector_graphics_compiler - 1.3.0 1.3.0
wkt_parser - 2.0.0 2.0.0
xdg_directories - 1.1.0 1.1.0
xml - 7.0.1 7.0.1
yaml - 3.1.4 3.1.4

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

The constraint `^0.9.1` on latlong2 does not support the stable version `0.10.0`.

Try running dart pub upgrade --major-versions latlong2 to update the constraint.

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.18, Flutter 3.47.0, Dart 3.13.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
110
points
3.44k
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Run JavaScript widgets as Flutter widgets using QuickJS (VM) or Web Workers (web).

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

fl_chart, flame, flame_3d, flutter, flutter_cube, flutter_js, flutter_map, flutter_markdown_plus, flutter_svg, latlong2, path, path_provider, quickjs_runtime, shared_preferences, vector_math, web

More

Packages that depend on js_widget_runtime