web_browser_detect 2.0.3 copy "web_browser_detect: ^2.0.3" to clipboard
web_browser_detect: ^2.0.3 copied to clipboard

Flutter Web browser detection package. This package allows you to detect which browser and its version is in use.

15
likes
120/ 140
pub points
94%
popularity

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

OK
Follow Dart file conventions
30 / 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

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

4 out of 11 API elements (36.4 %) have documentation comments.

Some symbols that are missing documentation: web_browser_detect, web_browser_detect.Browser, web_browser_detect.Browser.browser, web_browser_detect.Browser.browserAgent, web_browser_detect.Browser.version.

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:web_browser_detect/web_browser_detect.dart that imports:
  • package:web_browser_detect/src/browser.dart that imports:
  • package:universal_html/html.dart that imports:
  • package:universal_html/src/_sdk/html.dart that imports:
  • package:universal_html/src/_sdk_html_additions.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 3 issues. Showing the first 2:

WARNING: Unnecessary type check; the result is always 'true'.

lib/src/browser.dart:41:9

   ╷
41 │     if (window.navigator.appVersion is String) {
   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

WARNING: The stack trace variable 't' isn't used and can be removed.

lib/src/browser.dart:65:17

   ╷
65 │     } catch (e, t) {
   │                 ^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/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
flutter flutter 0.0.0 0.0.0
universal_html ^2.0.8 2.2.4 2.2.4
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
characters - 1.3.0 1.3.0
charcode - 1.3.1 1.3.1
collection - 1.18.0 1.18.0
csslib - 1.0.0 1.0.0
html - 0.15.4 0.15.4
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
path - 1.9.0 1.9.0
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
universal_io - 2.2.2 2.2.2
vector_math - 2.1.4 2.1.4

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, Flutter 3.19.5, Dart 3.3.3.

Check the analysis log for details.

15
likes
120
pub points
94%
popularity

Publisher

verified publishertomas-chyly.com

Flutter Web browser detection package. This package allows you to detect which browser and its version is in use.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, universal_html

More

Packages that depend on web_browser_detect