windows_screen_guard 0.1.1
windows_screen_guard: ^0.1.1 copied to clipboard
Prevent screen capture, recording, and PrintScreen on Flutter Windows apps using the Windows display affinity API — the same method used by Netflix and banking apps.
We analyzed this package 5 days ago, and awarded it 130 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
10 out of 11 API elements (90.9 %) have documentation comments.
Some symbols that are missing documentation: windows_screen_guard.ScreenGuardResult.ScreenGuardResult.new.
10/10 points: Package has an example
20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Windows
These platforms are not supported:
Package does not support platform `Android`.
Because:
package:windows_screen_guard/windows_screen_guard.dartthat imports:package:windows_screen_guard/src/windows_screen_guard.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `iOS`.
Because:
package:windows_screen_guard/windows_screen_guard.dartthat imports:package:windows_screen_guard/src/windows_screen_guard.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `Linux`.
Because:
package:windows_screen_guard/windows_screen_guard.dartthat imports:package:windows_screen_guard/src/windows_screen_guard.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `macOS`.
Because:
package:windows_screen_guard/windows_screen_guard.dartthat imports:package:windows_screen_guard/src/windows_screen_guard.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `Web`.
Because:
package:windows_screen_guard/windows_screen_guard.dartthat imports:package:windows_screen_guard/src/windows_screen_guard.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
50/50 points: code has no errors, warnings, lints, or formatting issues
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
ffi |
^2.1.0 |
2.2.0 | 2.2.0 | |
win32 |
^5.2.0 |
5.15.0 | 6.3.0 |
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.0 | |
meta |
- | 1.18.0 | 1.18.3 | |
vector_math |
- | 2.2.0 | 2.4.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^5.2.0` 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
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 2 errors:
UNDEFINED_CLASS-lib/src/windows_screen_guard.dart:15:28- Undefined class 'WNDENUMPROC'.MUST_BE_A_NATIVE_FUNCTION_TYPE-lib/src/windows_screen_guard.dart:69:26- The type 'InvalidType' given to 'fromFunction' must be a valid 'dart:ffi' native function type.
Run flutter pub downgrade and then flutter analyze to reproduce the above problem.
You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.23.14, Flutter 3.44.4, Dart 3.12.2.
Check the analysis log for details.