flutter_permission_manager 0.0.3 flutter_permission_manager: ^0.0.3 copied to clipboard
权限管理库.
We analyzed this package 3 days ago, and awarded it 115 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too short.
Add more detail to the description
field of pubspec.yaml
. Use 60 to 180 characters to describe the package, what it does, and its target use case.
The package description contains too many non-ASCII characters.
The site uses English as its primary language. The content of the description
field in your package's pubspec.yaml
should primarily contain characters used in English.
5/5 points: Provide a valid README.md
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` contains too many non-ASCII characters.
The site uses English as its primary language. The content of CHANGELOG.md
in your package should primarily contain characters used in English.
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 49 API elements (20.4 %) have documentation comments.
Some symbols that are missing documentation: flutter_permission_manager
, flutter_permission_manager.BasePermissionsManager
, flutter_permission_manager.BasePermissionsManager.BasePermissionsManager
, flutter_permission_manager.BasePermissionsManager.audio
, flutter_permission_manager.BasePermissionsManager.audioPermissionText
.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
These platforms are not supported:
Package does not support platform `Linux`.
Because:
package:flutter_permission_manager/flutter_permission_manager.dart
that imports:package:flutter_permission_manager/src/permission_manager.dart
that imports:package:permission_handler/permission_handler.dart
that declares support for platforms:Android
,iOS
,Windows
.
Package does not support platform `macOS`.
Because:
package:flutter_permission_manager/flutter_permission_manager.dart
that imports:package:flutter_permission_manager/src/permission_manager.dart
that imports:package:permission_handler/permission_handler.dart
that declares support for platforms:Android
,iOS
,Windows
.
Package does not support platform `Web`.
Because:
package:flutter_permission_manager/flutter_permission_manager.dart
that imports:package:flutter_permission_manager/src/permission_manager.dart
that imports:package:permission_handler/permission_handler.dart
that declares support for platforms:Android
,iOS
,Windows
.
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:flutter_permission_manager/flutter_permission_manager.dart
that imports:package:flutter_permission_manager/src/permission_manager.dart
that imports:package:device_info_plus/device_info_plus.dart
that imports:package:device_info_plus/src/device_info_plus_windows.dart
that imports:package:win32/win32.dart
that declares support for platforms:Windows
.
Package does not support platform `iOS`.
Because:
package:flutter_permission_manager/flutter_permission_manager.dart
that imports:package:flutter_permission_manager/src/permission_manager.dart
that imports:package:device_info_plus/device_info_plus.dart
that imports:package:device_info_plus/src/device_info_plus_windows.dart
that imports:package:win32/win32.dart
that declares support for platforms:Windows
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:flutter_permission_manager/flutter_permission_manager.dart
that imports:package:flutter_permission_manager/src/permission_manager.dart
that imports:package:device_info_plus/device_info_plus.dart
that imports:package:device_info_plus/src/device_info_plus_windows.dart
that imports:package:win32/win32.dart
that imports:package:win32/src/com/iwbemservices.dart
that imports:package:win32/src/com/iunknown.dart
that imports:package:win32/src/utils.dart
that imports:package:win32/src/win32/user32.g.dart
that imports:package:win32/src/variant.dart
that imports:package:win32/src/structs.g.dart
that imports:package:win32/src/guid.dart
that imports:package:win32/src/win32/ole32.g.dart
that imports:package:win32/src/combase.dart
that imports:package:win32/src/macros.dart
that imports:package:win32/src/constants.dart
that imports:package:ffi/ffi.dart
that imports:package:ffi/src/utf8.dart
that imports:dart:ffi
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
INFO: 'MediaQueryData.fromWindow' is deprecated and shouldn't be used. Use MediaQueryData.fromView instead. This constructor was deprecated in preparation for the upcoming multi-window support. This feature was deprecated after v3.7.0-32.0.pre.
lib/flutter_permission_manager_adapt.dart:24:33
╷
24 │ MediaQueryData mediaQuery = MediaQueryData.fromWindow(window);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/flutter_permission_manager_adapt.dart
INFO: 'window' is deprecated and shouldn't be used. Look up the current FlutterView from the context via View.of(context) or consult the PlatformDispatcher directly instead. Deprecated to prepare for the upcoming multi-window support. This feature was deprecated after v3.7.0-32.0.pre.
lib/flutter_permission_manager_adapt.dart:24:59
╷
24 │ MediaQueryData mediaQuery = MediaQueryData.fromWindow(window);
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/flutter_permission_manager_adapt.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
device_info_plus |
^8.1.0 |
8.2.2 | 11.2.0 |
flutter |
flutter |
0.0.0 | 0.0.0 |
permission_handler |
^10.2.0 |
10.4.5 | 11.3.1 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
characters |
- | 1.3.0 | 1.4.0 |
collection |
- | 1.19.0 | 1.19.1 |
device_info_plus_platform_interface |
- | 7.0.2 | 7.0.2 |
ffi |
- | 2.1.3 | 2.1.3 |
file |
- | 6.1.4 | 7.0.1 |
flutter_web_plugins |
- | 0.0.0 | 0.0.0 |
material_color_utilities |
- | 0.11.1 | 0.12.0 |
meta |
- | 1.15.0 | 1.16.0 |
path |
- | 1.9.1 | 1.9.1 |
permission_handler_android |
- | 10.3.6 | 12.0.13 |
permission_handler_apple |
- | 9.1.4 | 9.4.5 |
permission_handler_platform_interface |
- | 3.12.0 | 4.2.3 |
permission_handler_windows |
- | 0.1.3 | 0.2.1 |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 |
sky_engine |
- | 0.0.0 | 0.0.0 |
vector_math |
- | 2.1.4 | 2.1.4 |
win32 |
- | 4.1.4 | 5.10.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^8.1.0` on device_info_plus does not support the stable version `9.0.0`.
Try running dart pub upgrade --major-versions device_info_plus
to update the constraint.
The constraint `^10.2.0` on permission_handler does not support the stable version `11.0.0`.
Try running dart pub upgrade --major-versions permission_handler
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.22.17
, Flutter 3.27.0
, Dart 3.6.0
.
Check the analysis log for details.