mapbox_gl_flutter_web 0.1.2
mapbox_gl_flutter_web: ^0.1.2 copied to clipboard
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.
We analyzed this package 10 days ago, and awarded it 150 pub points (of a possible 160):
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.
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.
10/10 points: Package has an example
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.dartthat imports:package:mapbox_gl_flutter_web/src/widget.dartthat imports:package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dartthat imports:dart:js_interop_unsafe
Package not compatible with platform iOS
Because:
package:mapbox_gl_flutter_web/mapbox_gl_flutter_web.dartthat imports:package:mapbox_gl_flutter_web/src/widget.dartthat imports:package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dartthat imports:dart:js_interop_unsafe
Package not compatible with platform Windows
Because:
package:mapbox_gl_flutter_web/mapbox_gl_flutter_web.dartthat imports:package:mapbox_gl_flutter_web/src/widget.dartthat imports:package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dartthat imports:dart:js_interop_unsafe
Package not compatible with platform Linux
Because:
package:mapbox_gl_flutter_web/mapbox_gl_flutter_web.dartthat imports:package:mapbox_gl_flutter_web/src/widget.dartthat imports:package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dartthat imports:dart:js_interop_unsafe
Package not compatible with platform macOS
Because:
package:mapbox_gl_flutter_web/mapbox_gl_flutter_web.dartthat imports:package:mapbox_gl_flutter_web/src/widget.dartthat imports:package:mapbox_gl_flutter_web/src/js/mapbox_gl_js.dartthat imports:dart:js_interop_unsafe
WASM-ready: This package is compatible with runtime wasm. See https://dart.cn/web/wasm for details.
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
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.
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.23.19, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.