mouse 1.0.1+2
mouse: ^1.0.1+2 copied to clipboard
Simple mouse control for Dart using FFI, for desktop platforms.
We analyzed this package 6 days ago, and awarded it 140 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: BSD-3-Clause.
10/10 points: 20% or more of the public API has dartdoc comments
9 out of 9 API elements (100.0 %) have documentation comments.
10/10 points: Package has an example
20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package does not support platform `Android`.
Because:
package:mouse/mouse.dartthat declares support for platforms:Windows,Linux,macOS.
Package does not support platform `iOS`.
Because:
package:mouse/mouse.dartthat declares support for platforms:Windows,Linux,macOS.
Package does not support platform `Web`.
Because:
package:mouse/mouse.dartthat declares support for platforms:Windows,Linux,macOS.
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `Linux`.
Because:
package:mouse/mouse.dartthat imports:package:mouse/src/mouse_base.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `macOS`.
Because:
package:mouse/mouse.dartthat imports:package:mouse/src/mouse_base.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 16 issues. Showing the first 2:
INFO: 'SM_CXSCREEN' is deprecated and shouldn't be used. Use SM_CXSCREEN instead.
lib/src/mouse_windows.dart:16:65
╷
16 │ final int screenWidth = GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXSCREEN);
│ ^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/mouse_windows.dart
INFO: 'SM_CYSCREEN' is deprecated and shouldn't be used. Use SM_CYSCREEN instead.
lib/src/mouse_windows.dart:17:66
╷
17 │ final int screenHeight = GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYSCREEN);
│ ^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/mouse_windows.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
ffi |
^2.1.3 |
2.2.0 | 2.2.0 | |
win32 |
^5.10.1 |
5.15.0 | 6.4.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^5.10.1` on win32 does not support the stable version `6.0.0`.
Try running dart pub upgrade --major-versions win32 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.18, Dart 3.13.1.
Check the analysis log for details.