flutter_fuelet_contracts 0.0.10
flutter_fuelet_contracts: ^0.0.10 copied to clipboard
Flutter Plugin for Fuelet Sway contracts
We analyzed this package 15 hours ago, and awarded it 60 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 50 to 180 characters to describe the package, what it does, and its target use case.
Homepage URL doesn't exist.
At the time of the analysis https://github.com/Fuelet/fuelet_contracts/tree/main/packages/flutter_fuelet_contracts 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: AGPL-3.0.
0/10 points: 20% or more of the public API has dartdoc comments
0 out of 56 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: base_token_contract, base_token_contract.BaseTokenContract, base_token_contract.BaseTokenContract.BaseTokenContract.new, base_token_contract.BaseTokenContract.decimals, base_token_contract.BaseTokenContract.name.
10/10 points: Package has an example
20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Web
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:flutter_fuelet_contracts/flutter_fuelet_contracts.dartthat declares support for platforms:Android,iOS,Web.
Package does not support platform `Linux`.
Because:
package:flutter_fuelet_contracts/flutter_fuelet_contracts.dartthat declares support for platforms:Android,iOS,Web.
Package does not support platform `macOS`.
Because:
package:flutter_fuelet_contracts/flutter_fuelet_contracts.dartthat declares support for platforms:Android,iOS,Web.
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 12 issues. Showing the first 2:
ERROR: A value of type 'int?' can't be returned from the method 'decimals' because it has a return type of 'Future
lib/token_contract/platform_impl/mobile_token_contract.dart:16:12
╷
16 │ return await _tokenContract.decimals(
│ ┌────────────^
17 │ │ contractId: contractId, assetId: assetId);
│ └─────────────────────────────────────────────────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/token_contract/platform_impl/mobile_token_contract.dart
ERROR: A value of type 'String?' can't be returned from the method 'name' because it has a return type of 'Future
lib/token_contract/platform_impl/mobile_token_contract.dart:22:12
╷
22 │ return await _tokenContract.name(contractId: contractId, assetId: assetId);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/token_contract/platform_impl/mobile_token_contract.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
fuelet_contracts |
^1.8.0 |
1.8.0 | 1.8.0 | |
js |
^0.6.5 |
0.6.7 | 0.7.2 | Discontinued |
plugin_platform_interface |
^2.0.2 |
2.1.8 | 2.1.8 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
archive |
- | 3.6.1 | 4.0.7 | |
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
build_cli_annotations |
- | 2.1.1 | 2.1.1 | |
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
colorize |
- | 3.0.0 | 3.0.0 | |
convert |
- | 3.1.2 | 3.1.2 | |
crypto |
- | 3.0.7 | 3.0.7 | |
ffi |
- | 2.1.5 | 2.1.5 | |
flutter_rust_bridge |
- | 1.75.3 | 2.11.1 | |
freezed_annotation |
- | 2.4.4 | 3.1.0 | |
http |
- | 0.13.6 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
json_annotation |
- | 4.9.0 | 4.9.0 | |
logging |
- | 1.3.0 | 1.3.0 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
mime |
- | 2.0.0 | 2.0.0 | |
path |
- | 1.9.1 | 1.9.1 | |
petitparser |
- | 5.4.0 | 7.0.1 | |
pool |
- | 1.5.2 | 1.5.2 | |
puppeteer |
- | 2.25.1 | 3.20.0 | |
shelf |
- | 1.4.2 | 1.4.2 | |
shelf_static |
- | 1.1.3 | 1.1.3 | |
shelf_web_socket |
- | 1.0.4 | 3.0.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 | |
tuple |
- | 2.0.2 | 2.0.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
uuid |
- | 3.0.7 | 4.5.2 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
web |
- | 0.5.1 | 1.1.1 | |
web_socket_channel |
- | 2.4.5 | 3.0.3 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^0.6.5` on js does not support the stable version `0.7.0`.
Try running dart pub upgrade --major-versions js to update the constraint.
The package has one or more discontinued direct dependencies.
Discontinued packages are no longer maintained, and can end up being a
liability.
Consider migrating away from these dependencies:
- js.
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 10 errors:
RETURN_OF_INVALID_TYPE-lib/token_contract/platform_impl/mobile_token_contract.dart:16:12- A value of type 'int?' can't be returned from the method 'decimals' because it has a return type of 'FutureRETURN_OF_INVALID_TYPE-lib/token_contract/platform_impl/mobile_token_contract.dart:22:12- A value of type 'String?' can't be returned from the method 'name' because it has a return type of 'FutureRETURN_OF_INVALID_TYPE-lib/token_contract/platform_impl/mobile_token_contract.dart:27:12- A value of type 'String?' can't be returned from the method 'symbol' because it has a return type of 'Future
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.5, Flutter 3.38.5, Dart 3.10.4.
Check the analysis log for details.