flutter_rest_client 0.2.0
flutter_rest_client: ^0.2.0 copied to clipboard
A rest client module for flutter.
We analyzed this package 20 hours ago, and awarded it 110 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.
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
2 out of 164 API elements (1.2 %) 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: flutter_rest_client
, flutter_rest_client.AppHttpOverrides
, flutter_rest_client.AppHttpOverrides.AppHttpOverrides.new
, flutter_rest_client.BadRequest
, flutter_rest_client.BadRequest.BadRequest.new
.
10/10 points: Package has an example
20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ macOS
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:flutter_rest_client/flutter_rest_client.dart
that imports:package:flutter_rest_client/src/dio/http_helper.dart
that imports:package:flutter_dio_http_cache/dio_http_cache.dart
that imports:package:flutter_dio_http_cache/src/manager_dio.dart
that imports:package:flutter_dio_http_cache/src/core/manager.dart
that imports:package:sqflite/utils/utils.dart
that declares support for platforms:Android
,iOS
,macOS
.
Package does not support platform `Linux`.
Because:
package:flutter_rest_client/flutter_rest_client.dart
that imports:package:flutter_rest_client/src/dio/http_helper.dart
that imports:package:flutter_dio_http_cache/dio_http_cache.dart
that imports:package:flutter_dio_http_cache/src/manager_dio.dart
that imports:package:flutter_dio_http_cache/src/core/manager.dart
that imports:package:sqflite/utils/utils.dart
that declares support for platforms:Android
,iOS
,macOS
.
Package does not support platform `Web`.
Because:
package:flutter_rest_client/flutter_rest_client.dart
that imports:package:flutter_rest_client/src/dio/http_helper.dart
that imports:package:flutter_dio_http_cache/dio_http_cache.dart
that imports:package:flutter_dio_http_cache/src/manager_dio.dart
that imports:package:flutter_dio_http_cache/src/core/manager.dart
that imports:package:sqflite/utils/utils.dart
that declares support for platforms:Android
,iOS
,macOS
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:flutter_rest_client/flutter_rest_client.dart
that imports:package:flutter_rest_client/src/exceptions/network_exception.dart
that 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.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 32 issues. Showing the first 2:
WARNING: The exception variable 'e' isn't used, so the 'catch' clause can be removed.
lib/src/dio/file_upload/file_upload_repository.dart:42:26
╷
42 │ } on DioError catch (e) {
│ ^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/dio/file_upload/file_upload_repository.dart
WARNING: The value of the field '_dio' isn't used.
lib/src/dio/interceptors/error_interceptor.dart:5:13
╷
5 │ final Dio _dio;
│ ^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/dio/interceptors/error_interceptor.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
curl_logger_dio_interceptor |
^0.0.3 |
0.0.3 | 1.0.0 | |
dio |
^4.0.0 |
4.0.6 | 5.9.0 | |
flutter_dio_http_cache |
^0.3.1 |
0.3.1 | 0.3.1 | |
freezed_annotation |
^1.1.0 |
1.1.0 | 3.1.0 | |
http_parser |
^4.0.0 |
4.1.2 | 4.1.2 | |
mime |
^1.0.1 |
1.0.6 | 2.0.0 | |
pretty_dio_logger |
^1.1.1 |
1.2.0-beta-1 | 1.4.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
_fe_analyzer_shared |
- | 90.0.0 | 90.0.0 | |
analyzer |
- | 8.3.0 | 8.3.0 | |
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
boolean_selector |
- | 2.1.2 | 2.1.2 | |
build |
- | 4.0.2 | 4.0.2 | |
build_config |
- | 1.2.0 | 1.2.0 | |
characters |
- | 1.4.0 | 1.4.1 | |
checked_yaml |
- | 2.0.4 | 2.0.4 | |
collection |
- | 1.19.1 | 1.19.1 | |
convert |
- | 3.1.2 | 3.1.2 | |
crypto |
- | 3.0.6 | 3.0.6 | |
dart_style |
- | 3.1.2 | 3.1.2 | |
file |
- | 7.0.1 | 7.0.1 | |
glob |
- | 2.1.3 | 2.1.3 | |
json_annotation |
- | 4.9.0 | 4.9.0 | |
json_serializable |
- | 6.11.1 | 6.11.1 | |
logging |
- | 1.3.0 | 1.3.0 | |
matcher |
- | 0.12.17 | 0.12.17 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.16.0 | 1.17.0 | |
package_config |
- | 2.2.0 | 2.2.0 | |
path |
- | 1.9.1 | 1.9.1 | |
platform |
- | 3.1.6 | 3.1.6 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
pubspec_parse |
- | 1.5.0 | 1.5.0 | |
quiver |
- | 3.2.2 | 3.2.2 | |
source_gen |
- | 4.0.2 | 4.0.2 | |
source_helper |
- | 1.3.8 | 1.3.8 | |
source_span |
- | 1.10.1 | 1.10.1 | |
sqflite |
- | 2.4.2 | 2.4.2 | |
sqflite_android |
- | 2.4.2+2 | 2.4.2+2 | |
sqflite_common |
- | 2.5.6 | 2.5.6 | |
sqflite_darwin |
- | 2.4.2 | 2.4.2 | |
sqflite_platform_interface |
- | 2.4.0 | 2.4.0 | |
stack_trace |
- | 1.12.1 | 1.12.1 | |
stream_channel |
- | 2.1.4 | 2.1.4 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
synchronized |
- | 3.4.0 | 3.4.0 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
test_api |
- | 0.7.7 | 0.7.7 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
watcher |
- | 1.1.4 | 1.1.4 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
Found 4 issues. Showing the first 2:
The constraint `^0.0.3` on curl_logger_dio_interceptor does not support the stable version `1.0.0`.
Try running dart pub upgrade --major-versions curl_logger_dio_interceptor
to update the constraint.
The constraint `^4.0.0` on dio does not support the stable version `5.0.0`.
Try running dart pub upgrade --major-versions dio
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.22.23
, Flutter 3.35.5
, Dart 3.9.2
.
Check the analysis log for details.