screen_protection 0.0.7 copy "screen_protection: ^0.0.7" to clipboard
screen_protection: ^0.0.7 copied to clipboard

The problem we identified is the need for enhanced security in our app. Many users store sensitive information within the app, making it crucial to protect their data from unauthorized access. Our sol [...]

4
likes
70/ 160
pub points
25%
popularity

We analyzed this package 15 hours ago, and awarded it 70 pub points (of a possible 160):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

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.

partial
Provide documentation
10 / 20trigger folding of the section

0/10 points: 20% or more of the public API has dartdoc comments

8 out of 75 API elements (10.7 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: check_method, data, data.Data, data.Data.Data, data.Data.myData.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

These platforms are not supported:

Package does not support platform `iOS`.

Because:

  • package:screen_protection/screen_protection.dart that declares support for platforms: Android.
Package does not support platform `Windows`.

Because:

  • package:screen_protection/screen_protection.dart that declares support for platforms: Android.
Package does not support platform `Linux`.

Because:

  • package:screen_protection/screen_protection.dart that declares support for platforms: Android.
Package does not support platform `macOS`.

Because:

  • package:screen_protection/screen_protection.dart that declares support for platforms: Android.
Package does not support platform `Web`.

Because:

  • package:screen_protection/screen_protection.dart that declares support for platforms: Android.

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:screen_protection/screen_protection.dart that imports:
  • package:screen_protection/protection_methods/fingerprint/fprint.dart that imports:
  • package:local_auth/local_auth.dart that imports:
  • package:local_auth/src/local_auth.dart that imports:
  • package:local_auth_windows/local_auth_windows.dart that declares support for platforms: Windows.
failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 9 issues. Showing the first 2:

ERROR: The named parameter 'primary' isn't defined.

lib/protection_methods/fingerprint/fprint.dart:119:27

    ╷
119 │                           primary: Colors.grey[900],
    │                           ^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/protection_methods/fingerprint/fprint.dart

ERROR: The named parameter 'onPrimary' isn't defined.

lib/protection_methods/fingerprint/fprint.dart:120:27

    ╷
120 │                           onPrimary: Colors.white,
    │                           ^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/protection_methods/fingerprint/fprint.dart

failed
Support up-to-date dependencies
20 / 40trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
hive_flutter ^1.1.0 1.1.0 1.1.0
local_auth ^2.1.6 2.2.0 2.2.0
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.0
clock - 1.1.1 1.1.1
collection - 1.18.0 1.18.0
crypto - 3.0.3 3.0.3
ffi - 2.1.2 2.1.2
flutter_plugin_android_lifecycle - 2.0.20 2.0.20
hive - 2.2.3 2.2.3
intl - 0.19.0 0.19.0
local_auth_android - 1.0.39 1.0.39
local_auth_darwin - 1.3.1 1.3.1
local_auth_platform_interface - 1.0.10 1.0.10
local_auth_windows - 1.0.10 1.0.10
material_color_utilities - 0.8.0 0.12.0
meta - 1.12.0 1.15.0
path - 1.9.0 1.9.0
path_provider - 2.1.3 2.1.3
path_provider_android - 2.2.5 2.2.5
path_provider_foundation - 2.4.0 2.4.0
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.2.1 2.2.1
platform - 3.1.5 3.1.5
sky_engine - 0.0.99 0.0.99
typed_data - 1.3.2 1.3.2
vector_math - 2.1.4 2.1.4
win32 - 5.5.1 5.5.1
xdg_directories - 1.0.4 1.0.4

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 8 errors:

  • UNDEFINED_NAMED_PARAMETER - lib/protection_methods/fingerprint/fprint.dart:119:27 - The named parameter 'primary' isn't defined.
  • UNDEFINED_NAMED_PARAMETER - lib/protection_methods/fingerprint/fprint.dart:120:27 - The named parameter 'onPrimary' isn't defined.
  • UNDEFINED_NAMED_PARAMETER - lib/protection_methods/pin/pin.dart:175:11 - The named parameter 'primary' isn't defined.

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.22.6, Flutter 3.22.2, Dart 3.4.3.

Check the analysis log for details.

4
likes
70
pub points
25%
popularity

Publisher

unverified uploader

The problem we identified is the need for enhanced security in our app. Many users store sensitive information within the app, making it crucial to protect their data from unauthorized access. Our solution is to implement a protection screen that will act as a barrier to the app's content, requiring authentication before granting access

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, hive_flutter, local_auth, plugin_platform_interface

More

Packages that depend on screen_protection