flutter_offline_sync_queue 0.1.2 copy "flutter_offline_sync_queue: ^0.1.2" to clipboard
flutter_offline_sync_queue: ^0.1.2 copied to clipboard

Offline-first background sync for Flutter apps. Queue any local Dart model while offline and sync it automatically to any REST API when connectivity returns. Built on WorkManager with battery awaren [...]

110/ 160
pub points
163
downloads

We analyzed this package 13 hours ago, and awarded it 110 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/yourname/offline_sync_kit/issues was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

102 out of 139 API elements (73.4 %) have documentation comments.

Some symbols that are missing documentation: flutter_offline_sync_queue.BackgroundSyncManager.BackgroundSyncManager.new, flutter_offline_sync_queue.BackgroundSyncManager.config, flutter_offline_sync_queue.ConnectivityChecker.ConnectivityChecker.new, flutter_offline_sync_queue.SyncAuthException.SyncAuthException.new, flutter_offline_sync_queue.SyncAuthException.message.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:flutter_offline_sync_queue/flutter_offline_sync_queue.dart that imports:
  • package:flutter_offline_sync_queue/src/notifications/sync_notification_service.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that imports:
  • package:flutter_local_notifications/src/notification_details.dart that imports:
  • package:flutter_local_notifications_linux/flutter_local_notifications_linux.dart that declares support for platforms: Linux.
Package does not support platform `Linux`.

Because:

  • package:flutter_offline_sync_queue/flutter_offline_sync_queue.dart that imports:
  • package:flutter_offline_sync_queue/src/notifications/sync_notification_service.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that imports:
  • package:flutter_local_notifications/src/notification_details.dart that imports:
  • package:flutter_local_notifications_windows/flutter_local_notifications_windows.dart that declares support for platforms: Windows.
Package does not support platform `macOS`.

Because:

  • package:flutter_offline_sync_queue/flutter_offline_sync_queue.dart that imports:
  • package:flutter_offline_sync_queue/src/notifications/sync_notification_service.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that imports:
  • package:flutter_local_notifications/src/notification_details.dart that imports:
  • package:flutter_local_notifications_windows/flutter_local_notifications_windows.dart that declares support for platforms: Windows.
Package does not support platform `Web`.

Because:

  • package:flutter_offline_sync_queue/flutter_offline_sync_queue.dart that imports:
  • package:flutter_offline_sync_queue/src/notifications/sync_notification_service.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

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:flutter_offline_sync_queue/flutter_offline_sync_queue.dart that imports:
  • package:flutter_offline_sync_queue/src/notifications/sync_notification_service.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that imports:
  • package:flutter_local_notifications/src/notification_details.dart that imports:
  • package:flutter_local_notifications_windows/flutter_local_notifications_windows.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:flutter_offline_sync_queue/flutter_offline_sync_queue.dart that imports:
  • package:flutter_offline_sync_queue/src/notifications/sync_notification_service.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that imports:
  • package:flutter_local_notifications/src/notification_details.dart that imports:
  • package:flutter_local_notifications_windows/flutter_local_notifications_windows.dart that declares support for platforms: Windows.
Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: 'isInDebugMode' is deprecated and shouldn't be used. Use WorkmanagerDebug handlers instead. This parameter has no effect.

lib/src/sync/background_sync_dispatcher.dart:75:48

   ╷
75 │     await Workmanager().initialize(dispatcher, isInDebugMode: kDebugMode);
   │                                                ^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/sync/background_sync_dispatcher.dart

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
battery_plus ^6.0.0 6.2.3 7.0.0
connectivity_plus ^6.0.0 6.1.5 7.0.0
dio ^5.0.0 5.9.2 5.9.2
flutter_local_notifications ^19.4.0 19.5.0 21.0.0
hive_flutter ^1.1.0 1.1.0 1.1.0
path_provider ^2.1.0 2.1.5 2.1.5
shared_preferences ^2.2.0 2.5.4 2.5.4
workmanager ^0.9.0+3 0.9.0+3 0.9.0+3
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
battery_plus_platform_interface - 2.0.1 2.0.1
characters - 1.4.1 1.4.1
clock - 1.1.2 1.1.2
code_assets - 1.0.0 1.0.0
collection - 1.19.1 1.19.1
connectivity_plus_platform_interface - 2.0.1 2.0.1
crypto - 3.0.7 3.0.7
dbus - 0.7.12 0.7.12
dio_web_adapter - 2.1.2 2.1.2
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
flutter_local_notifications_linux - 6.0.0 8.0.0
flutter_local_notifications_platform_interface - 9.1.0 11.0.0
flutter_local_notifications_windows - 1.0.3 3.0.0
glob - 2.1.3 2.1.3
hive - 2.2.3 2.2.3
hooks - 1.0.2 1.0.2
http - 1.6.0 1.6.0
http_parser - 4.1.2 4.1.2
logging - 1.3.0 1.3.0
material_color_utilities - 0.13.0 0.13.0
meta - 1.17.0 1.18.1
mime - 2.0.0 2.0.0
native_toolchain_c - 0.17.5 0.17.5
nm - 0.5.0 0.5.0
objective_c - 9.3.0 9.3.0
path - 1.9.1 1.9.1
path_provider_android - 2.2.22 2.2.22
path_provider_foundation - 2.6.0 2.6.0
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
petitparser - 7.0.2 7.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
pub_semver - 2.2.0 2.2.0
shared_preferences_android - 2.4.21 2.4.21
shared_preferences_foundation - 2.5.6 2.5.6
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
timezone - 0.10.1 0.11.0
typed_data - 1.4.0 1.4.0
upower - 0.7.0 0.7.0
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
workmanager_android - 0.9.0+2 0.9.0+2
workmanager_apple - 0.9.1+2 0.9.1+2
workmanager_platform_interface - 0.9.1+1 0.9.1+1
xdg_directories - 1.1.0 1.1.0
xml - 6.6.1 6.6.1
yaml - 3.1.3 3.1.3

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 3 issues. Showing the first 2:

The constraint `^6.0.0` on battery_plus does not support the stable version `7.0.0`.

Try running dart pub upgrade --major-versions battery_plus to update the constraint.

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.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 14 errors:

  • TYPE_TEST_WITH_UNDEFINED_NAME - lib/src/errors/sync_error_handler.dart:14:20 - The name 'DioException' isn't defined, so it can't be used in an 'is' expression.
  • BODY_MIGHT_COMPLETE_NORMALLY - lib/src/errors/sync_error_handler.dart:33:17 - The body might complete normally, causing 'null' to be returned, but the return type, 'String', is a potentially non-nullable type.
  • UNDEFINED_CLASS - lib/src/errors/sync_error_handler.dart:33:26 - Undefined class 'DioException'.

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.10, Flutter 3.41.4, Dart 3.11.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
3
likes
110
points
163
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Offline-first background sync for Flutter apps. Queue any local Dart model while offline and sync it automatically to any REST API when connectivity returns. Built on WorkManager with battery awareness, lifecycle guards, auto-retry, dead-letter support, and local notifications. No code generation required.

Repository (GitHub)
View/report issues

Topics

#offline #sync #background #workmanager #hive

License

MIT (license)

Dependencies

battery_plus, connectivity_plus, dio, flutter, flutter_local_notifications, hive_flutter, path_provider, shared_preferences, workmanager

More

Packages that depend on flutter_offline_sync_queue