mapbox_gl_flutter_web 0.1.2 copy "mapbox_gl_flutter_web: ^0.1.2" to clipboard
mapbox_gl_flutter_web: ^0.1.2 copied to clipboard

Platformweb

Flutter Web bridge for Mapbox GL JS. Pair with mapbox_maps_flutter on mobile via conditional imports to render the same map on every platform.

150/ 160
pub points
218
downloads

We analyzed this package 10 days ago, and awarded it 150 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

54 out of 230 API elements (23.5 %) have documentation comments.

Some symbols that are missing documentation: mapbox_gl_flutter_web.CameraBounds.CameraBounds.new, mapbox_gl_flutter_web.CameraBounds.bounds, mapbox_gl_flutter_web.CameraBounds.maxPitch, mapbox_gl_flutter_web.CameraBounds.maxZoom, mapbox_gl_flutter_web.CameraBounds.minPitch.

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:mapbox_gl_flutter_web/mapbox_gl_flutter_web.dart that imports:
  • package:mapbox_gl_flutter_web/src/widget.dart that imports:
  • package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dart that imports:
  • dart:js_interop_unsafe
Package not compatible with platform iOS

Because:

  • package:mapbox_gl_flutter_web/mapbox_gl_flutter_web.dart that imports:
  • package:mapbox_gl_flutter_web/src/widget.dart that imports:
  • package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dart that imports:
  • dart:js_interop_unsafe
Package not compatible with platform Windows

Because:

  • package:mapbox_gl_flutter_web/mapbox_gl_flutter_web.dart that imports:
  • package:mapbox_gl_flutter_web/src/widget.dart that imports:
  • package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dart that imports:
  • dart:js_interop_unsafe
Package not compatible with platform Linux

Because:

  • package:mapbox_gl_flutter_web/mapbox_gl_flutter_web.dart that imports:
  • package:mapbox_gl_flutter_web/src/widget.dart that imports:
  • package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dart that imports:
  • dart:js_interop_unsafe
Package not compatible with platform macOS

Because:

  • package:mapbox_gl_flutter_web/mapbox_gl_flutter_web.dart that imports:
  • package:mapbox_gl_flutter_web/src/widget.dart that imports:
  • package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dart that imports:
  • dart:js_interop_unsafe

WASM-ready: This package is compatible with runtime wasm. See https://dart.cn/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 6 issues. Showing the first 2:

INFO: Use a function declaration rather than a variable assignment to bind a function to a name.

lib/src/widget.dart:116:33

    ╷
116 │       void Function(JSAny, JSAny) onResize = (JSAny _, JSAny __) {
    │ ┌─────────────────────────────────^
117 │ │       try {
118 │ │         map.resize();
119 │ │       } catch (_) {}
120 │ │     };
    │ └─────^
    ╵

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

INFO: Use a function declaration rather than a variable assignment to bind a function to a name.

lib/src/widget.dart:131:28

    ╷
131 │         void Function(JSAny) styleLoaded = (JSAny _) {
    │ ┌────────────────────────────^
132 │ │         widget.onStyleLoadedListener!();
133 │ │       };
    │ └───────^
    ╵

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

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

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

No dependencies.

Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
vector_math - 2.4.2 2.4.2

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

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.19, Flutter 3.47.0, Dart 3.13.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
150
points
218
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter Web bridge for Mapbox GL JS. Pair with mapbox_maps_flutter on mobile via conditional imports to render the same map on every platform.

Repository (GitHub)
View/report issues

Topics

#mapbox #maps #web #js-interop #flutter-web

License

MIT (license)

Dependencies

flutter

More

Packages that depend on mapbox_gl_flutter_web