lm_labs_utils 1.1.8
lm_labs_utils: ^1.1.8 copied to clipboard
Reusable utilities for Flutter apps, packages, and plugins to encourage good coding practices
We analyzed this package 1 hour 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: BSD-3-Clause.
10/10 points: 20% or more of the public API has dartdoc comments
40 out of 118 API elements (33.9 %) have documentation comments.
Some symbols that are missing documentation: constants, constants.LLPlatform.LLPlatform.new, constants.LLPlatform.isAndroid, constants.LLPlatform.isDesktop, constants.LLPlatform.isIOS.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:lm_labs_utils/constants.dartthat imports:package:lm_labs_utils/src/constants/platform.dartthat imports:dart:io
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:lm_labs_utils/http_client.dartthat imports:package:lm_labs_utils/src/utils/http_client/network_interceptor.dartthat imports:package:connectivity_plus/connectivity_plus.dartthat imports:package:connectivity_plus/src/connectivity_plus_linux.dartthat imports:package:nm/nm.dartthat declares support for platforms:Linux.
Package does not support platform `iOS`.
Because:
package:lm_labs_utils/http_client.dartthat imports:package:lm_labs_utils/src/utils/http_client/network_interceptor.dartthat imports:package:connectivity_plus/connectivity_plus.dartthat imports:package:connectivity_plus/src/connectivity_plus_linux.dartthat imports:package:nm/nm.dartthat declares support for platforms:Linux.
Package does not support platform `Windows`.
Because:
package:lm_labs_utils/http_client.dartthat imports:package:lm_labs_utils/src/utils/http_client/network_interceptor.dartthat imports:package:connectivity_plus/connectivity_plus.dartthat imports:package:connectivity_plus/src/connectivity_plus_linux.dartthat imports:package:nm/nm.dartthat declares support for platforms:Linux.
Package does not support platform `macOS`.
Because:
package:lm_labs_utils/http_client.dartthat imports:package:lm_labs_utils/src/utils/http_client/network_interceptor.dartthat imports:package:connectivity_plus/connectivity_plus.dartthat imports:package:connectivity_plus/src/connectivity_plus_linux.dartthat imports:package:nm/nm.dartthat declares support for platforms:Linux.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:lm_labs_utils/constants.dartthat imports:package:lm_labs_utils/src/constants/platform.dartthat imports:dart:io
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.cn/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 11 issues. Showing the first 2:
INFO: 'Future'-returning calls in a non-'async' function.
lib/src/localization/i18n_hook.dart:10:3
╷
10 │ Future(() {
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/localization/i18n_hook.dart
INFO: Don't use 'BuildContext's across async gaps.
lib/src/localization/i18n_hook.dart:11:13
╷
11 │ I18n.of(context).locale = deviceLocale;
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/localization/i18n_hook.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
connectivity_plus |
^6.1.4 |
6.1.5 | 7.0.0 | |
dio |
^5.8.0+1 |
5.9.0 | 5.9.0 | |
easy_debounce |
^2.0.3 |
2.0.3 | 2.0.3 | |
flutter_hooks |
^0.21.2 |
0.21.3+1 | 0.21.3+1 | |
freezed_annotation |
^3.0.0 |
3.1.0 | 3.1.0 | |
hooks_riverpod |
^2.6.1 |
2.6.1 | 3.0.3 | |
i18n_extension |
^15.0.5 |
15.1.0 | 15.1.0 | |
json_annotation |
^4.9.0 |
4.9.0 | 4.9.0 | |
permission_handler |
^12.0.0+1 |
12.0.1 | 12.0.1 | |
riverpod_annotation |
^2.6.1 |
2.6.1 | 3.0.3 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
characters |
- | 1.4.0 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
collection |
- | 1.19.1 | 1.19.1 | |
connectivity_plus_platform_interface |
- | 2.0.1 | 2.0.1 | |
dbus |
- | 0.7.11 | 0.7.11 | |
dio_web_adapter |
- | 2.1.1 | 2.1.1 | |
ffi |
- | 2.1.4 | 2.1.4 | |
file |
- | 7.0.1 | 7.0.1 | |
flutter_riverpod |
- | 2.6.1 | 3.0.3 | |
gettext_parser |
- | 0.2.0 | 0.2.0 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
i18n_extension_core |
- | 5.0.2 | 5.0.2 | |
intl |
- | 0.20.2 | 0.20.2 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
mime |
- | 2.0.0 | 2.0.0 | |
nm |
- | 0.5.0 | 0.5.0 | |
path |
- | 1.9.1 | 1.9.1 | |
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 | |
permission_handler_android |
- | 13.0.1 | 13.0.1 | |
permission_handler_apple |
- | 9.4.7 | 9.4.7 | |
permission_handler_html |
- | 0.1.3+5 | 0.1.3+5 | |
permission_handler_platform_interface |
- | 4.3.0 | 4.3.0 | |
permission_handler_windows |
- | 0.2.1 | 0.2.1 | |
petitparser |
- | 7.0.1 | 7.0.1 | |
platform |
- | 3.1.6 | 3.1.6 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
riverpod |
- | 2.6.1 | 3.0.3 | |
shared_preferences |
- | 2.5.3 | 2.5.3 | |
shared_preferences_android |
- | 2.4.16 | 2.4.16 | |
shared_preferences_foundation |
- | 2.5.6 | 2.5.6 | |
shared_preferences_linux |
- | 2.4.1 | 2.4.1 | |
shared_preferences_platform_interface |
- | 2.4.1 | 2.4.1 | |
shared_preferences_web |
- | 2.4.3 | 2.4.3 | |
shared_preferences_windows |
- | 2.4.1 | 2.4.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
sprintf |
- | 7.0.0 | 7.0.0 | |
stack_trace |
- | 1.12.1 | 1.12.1 | |
state_notifier |
- | 1.0.0 | 1.0.0 | |
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 | |
web |
- | 1.1.1 | 1.1.1 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
xml |
- | 6.6.1 | 6.6.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
Found 3 issues. Showing the first 2:
The constraint `^6.1.4` on connectivity_plus does not support the stable version `7.0.0`.
Try running dart pub upgrade --major-versions connectivity_plus to update the constraint.
The constraint `^2.6.1` on hooks_riverpod does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions hooks_riverpod 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.23.1, Flutter 3.38.0, Dart 3.10.0-290.4.beta.
Check the analysis log for details.