vibration_fixed 4.0.0
vibration_fixed: ^4.0.0 copied to clipboard
A fixed plugin for handling Vibration API on iOS, Android, web and OpenHarmony.
We analyzed this package 2 days ago, and awarded it 120 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
Failed to verify repository URL.
vibration/pubspec.yaml from the repository defines publish_to, thus, we are unable to verify the package is published from here.
Please provide a valid repository URL in pubspec.yaml, such that:
repositorycan be cloned,- a clone of the repository contains a
pubspec.yaml, which:,- contains
name: vibration_fixed, - contains a
versionproperty, and, - does not contain a
publish_toproperty.
- contains
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: BSD-2-Clause.
10/10 points: 20% or more of the public API has dartdoc comments
27 out of 36 API elements (75.0 %) have documentation comments.
Some symbols that are missing documentation: vibration, vibration.Vibration.Vibration.new, vibration_fixed, vibration_fixed.MethodChannelVibration, vibration_fixed.MethodChannelVibration.MethodChannelVibration.new.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:vibration_fixed/vibration_fixed.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Linux`.
Because:
package:vibration_fixed/vibration_fixed.dartthat declares support for platforms:Android,iOS.
Package does not support platform `macOS`.
Because:
package:vibration_fixed/vibration_fixed.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Web`.
Because:
package:vibration_fixed/vibration_fixed.dartthat declares support for platforms:Android,iOS.
These issues are present but do not affect the score, because they may not originate in your package:
Package not compatible with platform Android
Because:
package:vibration_fixed/vibration_fixed.dartthat imports:package:vibration_fixed/src/vibration_web.dartthat imports:package:web/web.dartthat imports:package:web/src/helpers.dartthat imports:package:web/src/helpers/http.dartthat imports:package:web/src/helpers/events/events.dartthat imports:package:web/src/helpers/events/streams.dartthat imports:package:web/src/dom.dartthat imports:package:web/src/dom/xhr.dartthat imports:package:web/src/dom/html.dartthat imports:package:web/src/dom/webmidi.dartthat imports:package:web/src/dom/hr_time.dartthat imports:package:web/src/dom/user_timing.dartthat imports:package:web/src/dom/performance_timeline.dartthat imports:dart:js_interop
Package not compatible with platform iOS
Because:
package:vibration_fixed/vibration_fixed.dartthat imports:package:vibration_fixed/src/vibration_web.dartthat imports:package:web/web.dartthat imports:package:web/src/helpers.dartthat imports:package:web/src/helpers/http.dartthat imports:package:web/src/helpers/events/events.dartthat imports:package:web/src/helpers/events/streams.dartthat imports:package:web/src/dom.dartthat imports:package:web/src/dom/xhr.dartthat imports:package:web/src/dom/html.dartthat imports:package:web/src/dom/webmidi.dartthat imports:package:web/src/dom/hr_time.dartthat imports:package:web/src/dom/user_timing.dartthat imports:package:web/src/dom/performance_timeline.dartthat imports:dart:js_interop
0/0 points: Swift Package Manager support
Package does not support the Swift Package Manager on iOS
It does not contain ios/vibration_fixed/Package.swift.
This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.
See https://docs.flutter.dev/to/spm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
INFO: Missing type annotation.
lib/src/vibration_web.dart:54:10
╷
54 │ static _vibrate({int duration = 500, List<int> pattern = const []}) {
│ ^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/vibration_web.dart
INFO: Missing type annotation.
lib/src/vibration_web.dart:65:10
╷
65 │ static _cancel() {
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/vibration_web.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
device_info_plus |
>=9.0.2 <12.0.0 |
11.5.0 | 12.3.0 | |
plugin_platform_interface |
^2.0.2 |
2.1.8 | 2.1.8 | |
web |
>=0.5.1 <2.0.0 |
1.1.1 | 1.1.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
device_info_plus_platform_interface |
- | 7.0.3 | 7.0.3 | |
ffi |
- | 2.1.5 | 2.1.5 | |
file |
- | 7.0.1 | 7.0.1 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
win32 |
- | 5.15.0 | 5.15.0 | |
win32_registry |
- | 2.1.0 | 2.1.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `>=9.0.2 <12.0.0` on device_info_plus does not support the stable version `12.0.0`.
Try running dart pub upgrade --major-versions device_info_plus to update the constraint.
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.5, Flutter 3.38.5, Dart 3.10.4.
Check the analysis log for details.