universal_html 2.2.4 copy "universal_html: ^2.2.4" to clipboard
universal_html: ^2.2.4 copied to clipboard

A 'dart:html' that works in all platforms, including Flutter and server-side. Eases cross-platform development and HTML / XML processing.

480
likes
130/ 160
pub points
475k
downloads

We analyzed this package 7 days ago, and awarded it 130 pub points (of a possible 160):

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

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

OK
Provide documentation
20 / 20trigger folding of the section

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

2047 out of 8480 API elements (24.1 %) have documentation comments.

Some symbols that are missing documentation: universal_html.AbortPaymentEvent, universal_html.AbortPaymentEvent.AbortPaymentEvent, universal_html.AbortPaymentEvent.respondWith, universal_html.AbsoluteOrientationSensor, universal_html.AbsoluteOrientationSensor.AbsoluteOrientationSensor.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:universal_html/controller.dart that imports:
  • package:universal_html/src/controller/window_controller.dart that imports:
  • package:universal_io/io.dart that imports:
  • package:universal_io/src/_exports_in_browser.dart that imports:
  • package:universal_io/src/internet_address.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:universal_html/controller.dart that imports:
  • package:universal_html/src/controller/window_controller.dart that imports:
  • package:universal_io/io.dart that imports:
  • package:universal_io/src/_exports_in_vm.dart that imports:
  • package:universal_io/src/new_universal_http_client.dart that imports:
  • package:universal_io/src/_helpers.dart that imports:
  • package:universal_io/src/_helpers_impl_elsewhere.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 120 issues. Showing the first 2:

WARNING: The operand can't be 'null', so the condition is always 'false'.

lib/src/html/dom/css_selectors.dart:282:19

    ╷
282 │     if (className == null || className.isEmpty) return false;
    │                   ^^^^^^^
    ╵

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

INFO: The variable name 'options_OR_x' isn't a lowerCamelCase identifier.

lib/src/controller/window_behavior_impl_browser.dart:739:16

    ╷
739 │   void scroll([options_OR_x, y, Map? scrollOptions]) {
    │                ^^^^^^^^^^^^
    ╵

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

OK
Support up-to-date dependencies
40 / 40trigger folding of the section

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

Package Constraint Compatible Latest
async ^2.11.0 2.12.0 2.12.0
charcode ^1.2.0 1.4.0 1.4.0
collection ^1.17.1 1.19.1 1.19.1
csslib >=0.17.3 <2.0.0 1.0.2 1.0.2
html ^0.15.3 0.15.5 0.15.5
meta ^1.9.1 1.16.0 1.16.0
source_span ^1.9.1 1.10.1 1.10.1
typed_data ^1.3.2 1.4.0 1.4.0
universal_io ^2.2.2 2.2.2 2.2.2
Transitive dependencies
Package Constraint Compatible Latest
path - 1.9.1 1.9.1
term_glyph - 1.2.2 1.2.2

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

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.17, Dart 3.6.0.

Check the analysis log for details.

480
likes
130
points
475k
downloads

Publisher

verified publisherdint.dev

Weekly Downloads

A 'dart:html' that works in all platforms, including Flutter and server-side. Eases cross-platform development and HTML / XML processing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

async, charcode, collection, csslib, html, meta, source_span, typed_data, universal_io

More

Packages that depend on universal_html