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 [...]

55/ 160
pub points
11
downloads

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

Failed report section
Follow Dart file conventions
15 / 30trigger folding of the section

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

Passed check 5/5 points: Provide a valid README.md

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` does not contain reference to the current version ("0.0.7").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 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.new, data.Data.myData.

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)

  • ✓ 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 report section
Pass static analysis
0 / 50trigger folding of the section

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

Found 13 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 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
hive_flutter ^1.1.0 1.1.0 1.1.0
local_auth ^2.1.6 2.3.0 3.0.0
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
clock - 1.1.2 1.1.2
code_assets - 1.0.0 1.0.0
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
flutter_plugin_android_lifecycle - 2.0.33 2.0.33
glob - 2.1.3 2.1.3
hive - 2.2.3 2.2.3
hooks - 1.0.1 1.0.1
intl - 0.20.2 0.20.2
local_auth_android - 1.0.56 2.0.4
local_auth_darwin - 1.6.1 2.0.2
local_auth_platform_interface - 1.1.0 1.1.0
local_auth_windows - 1.0.11 2.0.1
logging - 1.3.0 1.3.0
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.18.1
native_toolchain_c - 0.17.4 0.17.4
objective_c - 9.3.0 9.3.0
path - 1.9.1 1.9.1
path_provider - 2.1.5 2.1.5
path_provider_android - 2.2.22 2.2.22
path_provider_foundation - 2.6.0 2.6.0
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
pub_semver - 2.2.0 2.2.0
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
xdg_directories - 1.1.0 1.1.0
yaml - 3.1.3 3.1.3

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^2.1.6` on local_auth does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions local_auth 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 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.23.9, Flutter 3.38.9, Dart 3.10.8.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
5
likes
55
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

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

Packages that implement screen_protection