preset 0.0.3+6
preset: ^0.0.3+6 copied to clipboard
Advanced theme management system with string codec.
We analyzed this package 9 days ago, and awarded it 65 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` does not contain reference to the current version ("0.0.3+6").
Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.
10/10 points: Use an OSI-approved license
Detected license: Apache-2.0.
10/10 points: 20% or more of the public API has dartdoc comments
78 out of 201 API elements (38.8 %) have documentation comments.
Some symbols that are missing documentation: preset, preset.Chrome.Chrome.new, preset.Chrome.ascent, preset.Chrome.background, preset.Chrome.descent.
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:preset/preset.dartthat imports:package:preset/src/core/preset.dartthat imports:dart:io
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 84 issues. Showing the first 2:
ERROR: The argument type 'CardTheme' can't be assigned to the parameter type 'CardThemeData?'.
lib/src/presets/protocol/_irs.dart:26:16
╷
26 │ cardTheme: CardTheme(
│ ┌────────────────^
27 │ │ elevation: 16,
28 │ │ color: context.chrome.background,
29 │ │ shape: RoundedRectangleBorder(
30 │ │ borderRadius: BorderRadius.circular(8.0),
31 │ │ ),
32 │ │ ),
│ └─────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/presets/protocol/_irs.dart
ERROR: The argument type 'DialogTheme' can't be assigned to the parameter type 'DialogThemeData?'.
lib/src/presets/protocol/_irs.dart:33:18
╷
33 │ dialogTheme: DialogTheme(
│ ┌──────────────────^
34 │ │ elevation: 24,
35 │ │ backgroundColor: context.chrome.primary,
36 │ │ titleTextStyle: context.typeface.onPrimary.titleMedium,
37 │ │ contentTextStyle: context.typeface.onPrimary.bodyMedium,
38 │ │ iconColor: context.chrome.onPrimary,
39 │ │ shape: RoundedRectangleBorder(
40 │ │ borderRadius: BorderRadius.circular(8.0),
41 │ │ ),
42 │ │ ),
│ └─────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/presets/protocol/_irs.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
http |
^0.13.5 |
0.13.6 | 1.6.0 | |
image |
^4.0.15 |
4.7.2 | 4.7.2 | |
qp_xt |
^0.0.2+10 |
0.0.2+10 | 0.0.2+10 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
archive |
- | 4.0.7 | 4.0.7 | |
async |
- | 2.13.0 | 2.13.0 | |
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.7 | 3.0.7 | |
ffi |
- | 2.1.4 | 2.1.4 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
petitparser |
- | 7.0.1 | 7.0.1 | |
posix |
- | 6.0.3 | 6.0.3 | |
source_span |
- | 1.10.1 | 1.10.1 | |
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 | |
xml |
- | 6.6.1 | 6.6.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^0.13.5` on http does not support the stable version `1.0.0`.
Try running dart pub upgrade --major-versions http to update the constraint.
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 3 errors:
ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/src/presets/protocol/_irs.dart:26:16- The argument type 'CardTheme' can't be assigned to the parameter type 'CardThemeData?'.ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/src/presets/protocol/_irs.dart:33:18- The argument type 'DialogTheme' can't be assigned to the parameter type 'DialogThemeData?'.ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/src/presets/protocol/_irs.dart:81:18- The argument type 'TabBarTheme' can't be assigned to the parameter type 'TabBarThemeData?'.
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.3, Flutter 3.38.4, Dart 3.10.3.
Check the analysis log for details.