shared_pref_builder 1.0.1
shared_pref_builder: ^1.0.1 copied to clipboard
A code generator that builds easy-to-use SharedPreferences accessors for Flutter apps.
We analyzed this package 41 hours ago, and awarded it 120 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.
0/10 points: 20% or more of the public API has dartdoc comments
0 out of 4 API elements (0.0 %) 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: shared_pref_builder, shared_pref_builder.IterableExtension, shared_pref_builder.IterableExtension.firstWhereOrNull, shared_pref_builder.runSharedPrefGenerator.
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:shared_pref_builder/shared_pref_builder.dartthat imports:package:dart_style/dart_style.dartthat imports:package:dart_style/src/exceptions.dartthat imports:package:analyzer/error/error.dartthat imports:package:analyzer/src/error/error_code_values.g.dartthat imports:package:analyzer/src/generated/parser.dartthat imports:package:analyzer/src/fasta/ast_builder.dartthat imports:package:analyzer/src/generated/utilities_dart.dartthat imports:package:analyzer/src/dart/element/element.dartthat imports:package:analyzer/src/summary2/reference.dartthat imports:package:analyzer/dart/element/element.dartthat imports:package:analyzer/src/generated/engine.dartthat imports:package:analyzer/error/listener.dartthat imports:package:analyzer/dart/element/type.dartthat imports:package:analyzer/src/dart/element/type.dartthat imports:package:analyzer/src/dart/element/type_system.dartthat imports:package:analyzer/src/dart/resolver/flow_analysis_visitor.dartthat imports:package:analyzer/src/generated/variable_type_provider.dartthat imports:package:analyzer/dart/ast/ast.dartthat imports:package:analyzer/src/dart/ast/ast.dartthat imports:package:analyzer/src/generated/resolver.dartthat imports:package:analyzer/src/generated/static_type_analyzer.dartthat imports:package:analyzer/src/dart/resolver/invocation_inference_helper.dartthat imports:package:analyzer/src/dart/resolver/invocation_inferrer.dartthat imports:package:analyzer/src/dart/element/type_algebra.dartthat imports:package:analyzer/src/summary2/record_type_builder.dartthat imports:package:analyzer/src/dart/element/type_visitor.dartthat imports:package:analyzer/src/summary2/named_type_builder.dartthat imports:package:analyzer/src/summary2/link.dartthat imports:package:analyzer/src/summary2/types_builder.dartthat imports:package:analyzer/src/dart/element/member.dartthat imports:package:analyzer/dart/analysis/session.dartthat imports:package:analyzer/file_system/file_system.dartthat imports:package:analyzer/src/file_system/file_system.dartthat imports:package:analyzer/src/util/uri.dartthat imports:package:analyzer/src/summary/package_bundle_reader.dartthat imports:package:analyzer/src/generated/source.dartthat imports:package:analyzer/src/context/source.dartthat imports:package:analyzer/src/workspace/pub.dartthat imports:package:analyzer/src/workspace/workspace.dartthat imports:package:analyzer/src/workspace/blaze.dartthat imports:package:analyzer/src/workspace/blaze_watcher.dartthat imports:package:watcher/watcher.dartthat imports:package:watcher/src/file_watcher/polling.dartthat imports:package:watcher/src/stat.dartthat imports:dart:io
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 9 issues. Showing the first 2:
INFO: Statements in an if should be enclosed in a block.
lib/shared_pref_builder.dart:84:5
╷
84 │ ┌ return entry
85 │ │ .listSync(recursive: true)
86 │ │ .whereType<File>()
87 │ │ .map((f) => f.path)
88 │ │ .where((p) => p.endsWith('.dart') && !p.endsWith('.g.dart'))
89 │ └ .toList();
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/shared_pref_builder.dart
INFO: Angle brackets will be interpreted as HTML.
lib/src/parser/string_list_parser.dart:5:20
╷
5 │ /// Parser for List<String>
│ ^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/parser/string_list_parser.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
analyzer |
^6.0.0 |
6.4.1 | 9.0.0 | |
args |
^2.5.0 |
2.7.0 | 2.7.0 | |
code_builder |
^4.5.0 |
4.11.0 | 4.11.0 | |
dart_style |
^2.3.2 |
2.3.6 | 3.1.3 | |
path |
^1.9.0 |
1.9.1 | 1.9.1 | |
shared_pref_annotation |
^0.0.2 |
0.0.2 | 1.0.1 | |
yaml |
^3.1.3 |
3.1.3 | 3.1.3 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
_fe_analyzer_shared |
- | 67.0.0 | 92.0.0 | |
async |
- | 2.13.0 | 2.13.0 | |
boolean_selector |
- | 2.1.2 | 2.1.2 | |
built_collection |
- | 5.1.1 | 5.1.1 | |
built_value |
- | 8.12.1 | 8.12.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
convert |
- | 3.1.2 | 3.1.2 | |
crypto |
- | 3.0.7 | 3.0.7 | |
file |
- | 7.0.1 | 7.0.1 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
glob |
- | 2.1.3 | 2.1.3 | |
matcher |
- | 0.12.18 | 0.12.18 | |
meta |
- | 1.17.0 | 1.17.0 | |
package_config |
- | 2.2.0 | 2.2.0 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
source_span |
- | 1.10.1 | 1.10.1 | |
stack_trace |
- | 1.12.1 | 1.12.1 | |
stream_channel |
- | 2.1.4 | 2.1.4 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
test_api |
- | 0.7.8 | 0.7.8 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
watcher |
- | 1.1.4 | 1.1.4 |
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.0.0` on analyzer does not support the stable version `7.0.0`.
Try running dart pub upgrade --major-versions analyzer to update the constraint.
The constraint `^2.3.2` on dart_style does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions dart_style 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.2, Dart 3.10.0.
Check the analysis log for details.