windows_screen_guard 0.1.1 copy "windows_screen_guard: ^0.1.1" to clipboard
windows_screen_guard: ^0.1.1 copied to clipboard

PlatformWindows

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.

130/ 160
pub points
153
downloads

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

10 out of 11 API elements (90.9 %) have documentation comments.

Some symbols that are missing documentation: windows_screen_guard.ScreenGuardResult.ScreenGuardResult.new.

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)

  • ✓ Windows

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:windows_screen_guard/windows_screen_guard.dart that imports:
  • package:windows_screen_guard/src/windows_screen_guard.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:windows_screen_guard/windows_screen_guard.dart that imports:
  • package:windows_screen_guard/src/windows_screen_guard.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `Linux`.

Because:

  • package:windows_screen_guard/windows_screen_guard.dart that imports:
  • package:windows_screen_guard/src/windows_screen_guard.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `macOS`.

Because:

  • package:windows_screen_guard/windows_screen_guard.dart that imports:
  • package:windows_screen_guard/src/windows_screen_guard.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `Web`.

Because:

  • package:windows_screen_guard/windows_screen_guard.dart that imports:
  • package:windows_screen_guard/src/windows_screen_guard.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Passed report section
Pass static analysis
50 / 50trigger folding of the section

Passed check 50/50 points: code has no errors, warnings, lints, or formatting issues

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

Failed check 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.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 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.

Weekly downloads

Display as:
By versions:
0
likes
130
points
153
downloads

Documentation

API reference

Publisher

verified publisheramrsabbagh.com

Weekly Downloads

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.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

ffi, flutter, win32

More

Packages that depend on windows_screen_guard