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.

432
likes
110/ 140
pub points
99%
popularity

We analyzed this package 6 days ago, and awarded it 110 pub points (of a possible 140):

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

43 out of 48 API elements (89.6 %) have documentation comments.

Some symbols that are missing documentation: universal_html.controller.InternalElementData.client, universal_html.controller.InternalElementData.offset, universal_html.controller.InternalElementData.scroll, universal_html.controller.WindowBehavior.newInternalElementData, universal_html.controller.WindowBehavior.newWindow.

10/10 points: Package has an example

OK
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
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
20 / 20trigger 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.11.0 2.11.0
charcode ^1.2.0 1.3.1 1.3.1
collection ^1.17.1 1.18.0 1.18.0
csslib >=0.17.3 <2.0.0 1.0.0 1.0.0
html ^0.15.3 0.15.4 0.15.4
meta ^1.9.1 1.14.0 1.14.0
source_span ^1.9.1 1.10.0 1.10.0
typed_data ^1.3.2 1.3.2 1.3.2
universal_io ^2.2.2 2.2.2 2.2.2
Transitive dependencies
Package Constraint Compatible Latest
path - 1.9.0 1.9.0
term_glyph - 1.2.1 1.2.1

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

Analyzed with Pana 0.22.3, Dart 3.3.3.

Check the analysis log for details.

432
likes
110
pub points
99%
popularity

Publisher

verified publisherdint.dev

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