theta_models 0.8.4 theta_models: ^0.8.4 copied to clipboard
A package for the models used in Theta.
We analyzed this package 3 days ago, and awarded it 80 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.
Documentation URL doesn't exist.
At the time of the analysis https://docs.buildwiththeta.com
was unreachable. Make sure that the website is reachable via HEAD
requests.
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: Apache-2.0
.
10/10 points: 20% or more of the public API has dartdoc comments
247 out of 927 API elements (26.6 %) have documentation comments.
Some symbols that are missing documentation: theta_models
, theta_models.AlignIntrinsicStates.AlignIntrinsicStates.create
, theta_models.AssetType
, theta_models.AutoResizingTextType
, theta_models.BranchID
.
10/10 points: Package has 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:theta_models/theta_models.dart
that imports:package:theta_models/src/widgets/features/index.dart
that imports:package:theta_models/src/widgets/features/size_range.dart
that imports:package:theta_models/src/responsive_builder.dart
that imports:dart:io
0/0 points: WASM compatibility
Unable to detect compatibility with runtime wasm
, and this package will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 14 issues. Showing the first 2:
ERROR: The name 'WidgetState' is defined in the libraries 'package:flutter/src/widgets/widget_state.dart (via package:flutter/material.dart)' and 'package:theta_models/src/widgets/nodes/widget_state.dart (via package:theta_models/theta_models.dart)'.
lib/src/widgets/nodes/node.dart:433:20
╷
433 │ required final WidgetState state,
│ ^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/widgets/nodes/node.dart
ERROR: The name 'WidgetState' is defined in the libraries 'package:flutter/src/widgets/widget_state.dart (via package:flutter/material.dart)' and 'package:theta_models/src/widgets/nodes/widget_state.dart (via package:theta_models/theta_models.dart)'.
lib/src/widgets/nodes/widget_adapter.dart:9:20
╷
9 │ required final WidgetState state,
│ ^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/widgets/nodes/widget_adapter.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
collection |
^1.17.1 |
1.19.0 | 1.19.1 |
device_frame |
^1.1.0 |
1.2.0 | 1.2.0 |
enum_to_string |
^2.0.1 |
2.0.1 | 2.0.1 |
equatable |
^2.0.5 |
2.0.7 | 2.0.7 |
flutter |
flutter |
0.0.0 | 0.0.0 |
light_logger |
^0.0.3 |
0.0.3 | 0.0.3 |
recase |
^4.1.0 |
4.1.0 | 4.1.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
characters |
- | 1.3.0 | 1.4.0 |
freezed_annotation |
- | 2.4.4 | 2.4.4 |
json_annotation |
- | 4.9.0 | 4.9.0 |
material_color_utilities |
- | 0.11.1 | 0.12.0 |
meta |
- | 1.15.0 | 1.16.0 |
sky_engine |
- | 0.0.0 | 0.0.0 |
vector_math |
- | 2.1.4 | 2.1.4 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
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 2 errors:
AMBIGUOUS_IMPORT
-lib/src/widgets/nodes/node.dart:433:20
- The name 'WidgetState' is defined in the libraries 'package:flutter/src/widgets/widget_state.dart (via package:flutter/material.dart)' and 'package:theta_models/src/widgets/nodes/widget_state.dart (via package:theta_models/theta_models.dart)'.AMBIGUOUS_IMPORT
-lib/src/widgets/nodes/widget_adapter.dart:9:20
- The name 'WidgetState' is defined in the libraries 'package:flutter/src/widgets/widget_state.dart (via package:flutter/material.dart)' and 'package:theta_models/src/widgets/nodes/widget_state.dart (via package:theta_models/theta_models.dart)'.
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.22.17
, Flutter 3.27.0
, Dart 3.6.0
.
Check the analysis log for details.