dio_offline_sync 0.0.1
dio_offline_sync: ^0.0.1 copied to clipboard
A production-ready Flutter package for plug-and-play offline request queueing and auto-sync with Dio. Handles connectivity, storage, and retries automatically.
We analyzed this package 3 days ago, and awarded it 110 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
Repository URL doesn't exist.
At the time of the analysis https://github.com/Iflorainfopvtltd/dio_offline_sync 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: MIT.
0/10 points: 20% or more of the public API has dartdoc comments
OUT: Documenting dio_offline_sync... Discovering libraries... Linking elements... Precaching local docs for 1272776 elements... Initialized dartdoc with 1565 libraries Generating docs for library dio_offline_sync.dart from package:dio_offline_sync/dio_offline_sync.dart... Generating docs for library offline_sync.dart from package:dio_offline_sync/offline_sync.dart... Documented 2 public libraries in 53.6 seconds ERR: warning: ambiguous reexport of dio_extension.OfflineDioExtension, canonicalization candidates: (dio_offline_sync, dio_offline_sync) -> dio_offline_sync (confidence 0.000) from dio_extension.OfflineDioExtension: (file:///tmp/pana_IEQZZJ/lib/src/extension/dio_extension.dart:8:11) dio_offline_sync: 2.177 - (_Reason.samePackage (+1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.1667)) dio_offline_sync: 2.177 - (_Reason.samePackage (+1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.1667)) Use {@canonicalFor dio_extension.OfflineDioExtension} in the desired library's documentation to resolve the ambiguity and/or override dartdoc's decision, or structure your package so the reexport is less ambiguous. The symbol will still be referenced in all candidates -- this only controls the location where it will be written and which library will be displayed in navigation for the relevant pages. The flag [86 more lines]
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `Android`.
Because:
package:dio_offline_sync/dio_offline_sync.dartthat imports:package:dio_offline_sync/offline_sync.dartthat imports:package:dio_offline_sync/src/utils/network_checker.dartthat imports:package:connectivity_plus/connectivity_plus.dartthat imports:package:connectivity_plus/src/connectivity_plus_linux.dartthat imports:package:nm/nm.dartthat declares support for platforms:Linux.
Package does not support platform `iOS`.
Because:
package:dio_offline_sync/dio_offline_sync.dartthat imports:package:dio_offline_sync/offline_sync.dartthat imports:package:dio_offline_sync/src/utils/network_checker.dartthat imports:package:connectivity_plus/connectivity_plus.dartthat imports:package:connectivity_plus/src/connectivity_plus_linux.dartthat imports:package:nm/nm.dartthat declares support for platforms:Linux.
Package does not support platform `Windows`.
Because:
package:dio_offline_sync/dio_offline_sync.dartthat imports:package:dio_offline_sync/offline_sync.dartthat imports:package:dio_offline_sync/src/utils/network_checker.dartthat imports:package:connectivity_plus/connectivity_plus.dartthat imports:package:connectivity_plus/src/connectivity_plus_linux.dartthat imports:package:nm/nm.dartthat declares support for platforms:Linux.
Package does not support platform `macOS`.
Because:
package:dio_offline_sync/dio_offline_sync.dartthat imports:package:dio_offline_sync/offline_sync.dartthat imports:package:dio_offline_sync/src/utils/network_checker.dartthat imports:package:connectivity_plus/connectivity_plus.dartthat imports:package:connectivity_plus/src/connectivity_plus_linux.dartthat imports:package:nm/nm.dartthat declares support for platforms:Linux.
WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
INFO: Library names are not necessary.
lib/dio_offline_sync.dart:1:9
╷
1 │ library dio_offline_sync;
│ ^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/dio_offline_sync.dart
INFO: Library names are not necessary.
lib/offline_sync.dart:1:9
╷
1 │ library dio_offline_sync;
│ ^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/offline_sync.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
connectivity_plus |
^6.0.0 |
6.1.5 | 7.3.2 | |
dio |
^5.0.0 |
5.11.1 | 5.11.1 | |
equatable |
^2.0.5 |
2.1.0 | 3.0.0 | |
hive |
^2.2.3 |
2.2.3 | 2.2.3 | |
uuid |
^4.0.0 |
4.6.0 | 4.6.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.1 | 2.13.1 | |
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
connectivity_plus_platform_interface |
- | 2.1.0 | 2.1.0 | |
crypto |
- | 3.0.8 | 3.0.8 | |
dbus |
- | 0.7.15 | 0.8.1 | |
dio_web_adapter |
- | 2.2.2 | 2.2.2 | |
ffi |
- | 2.2.0 | 2.2.0 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
listen |
- | 1.0.1 | 1.0.1 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
mime |
- | 2.1.0 | 2.1.0 | |
nm |
- | 0.5.0 | 0.6.0 | |
path |
- | 1.9.1 | 1.9.1 | |
petitparser |
- | 7.1.0 | 7.1.0 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
source_span |
- | 1.10.2 | 1.10.2 | |
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.4.4 | 2.4.4 | |
web |
- | 1.1.2 | 1.1.2 | |
xml |
- | 7.1.0 | 7.1.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^6.0.0` on connectivity_plus does not support the stable version `7.0.0`.
Try running dart pub upgrade --major-versions connectivity_plus to update the constraint.
The constraint `^2.0.5` on equatable does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions equatable 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 6 errors:
UNDEFINED_CLASS-lib/src/interceptor/offline_interceptor.dart:16:16- Undefined class 'DioException'.UNDEFINED_IDENTIFIER-lib/src/interceptor/offline_interceptor.dart:23:43- Undefined name 'DioExceptionType'.UNDEFINED_IDENTIFIER-lib/src/interceptor/offline_interceptor.dart:24:21- Undefined name 'DioExceptionType'.
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.19, Flutter 3.50.0, Dart 3.14.0.
Check the analysis log for details.