PackageTrack

pub.dev

avanda

0.2.0avandajs/flutter-client

Flutter client for Avanda backends. Builds nested service queries, sends them over HTTP, and subscribes to live results over a self-healing websocket.

Release timeline

30 releases since 2022
20222023202420252026

Releases

  1. 0.2.024 Aug 2026
    Release notes2 sources agree

    Reliability release for the websocket layer, plus the first test suite.

    Breaking

    • AvandaStream.onError now takes Function(Object error)? and is called with the error. It was previously invoked with no arguments, so any handler that declared a parameter threw NoSuchMethodError.
    • Removed the unused Avanda.channel field. It was never initialised, so reading it always threw LateInitializationError.
    • Dropped the class_to_map and web_socket_channel dependencies. Neither was used; the socket runs on dart:io.

    Fixed

    • Reconnects no longer multiply. A dropped socket was reported by both channel.done and the stream subscription, and each reconnect registered both handlers again, so live sockets doubled on every disconnect.
    • Half-open connections are now detected. A ping interval is applied to the socket, so a sleeping radio or an expired NAT mapping surfaces as a normal disconnect instead of leaving the client silently dead.
    • Reconnect attempts back off exponentially with jitter instead of retrying on a flat 10 second timer, and stop when the stream is closed. A retry loop could previously outlive close() and leak a socket.
    • A server that accepts and then immediately drops no longer causes a hot redial loop.
    • close() now closes the inbound stream, so onClosed and onServerClosed actually fire. onServerClosed reports the real close code instead of 0.
    • Messages passed to AvandaStream.send while the socket is down are queued and flushed on reconnect instead of being silently discarded.
    • Avanda.addCustomFilter used a JavaScript truthiness check, which threw a TypeError on every call. This made greaterThan, lessThan, equals, notEquals, isNull, isNotNull, isLike and isNotLike unusable.
    • ResponseStruct.fromJson now reads total_pages, so getTotalPages() reports the server's value instead of always returning 1.
    • Removed a stray dart:ffi import from Service, and Service.al is no longer nullable.

    Added

    • WSStatus and AvandaStream.statusChanges, for distinguishing a transient reconnect from a closed connection. Late subscribers receive the current status before subsequent changes.
    • A test suite covering the query builder, the HTTP layer, response parsing and the websocket reconnect behaviour.
    • An example/ directory. The scratch lib/main.dart, which shipped a hardcoded address to consumers, has been removed.
    Open source →
  2. 0.1.515 Aug 2023
    Release notes2 sources agreeOpen source →
  3. 0.1.015 Aug 2023

    Nothing published for this version

  4. 0.0.2814 May 2023

    Nothing published for this version

  5. 0.0.2721 Feb 2023

    Nothing published for this version

  6. 0.0.2520 Feb 2023

    Nothing published for this version

  7. 0.0.2410 Sept 2022

    Nothing published for this version

  8. 0.0.2310 Sept 2022

    Nothing published for this version

  9. 0.0.2231 Jul 2022

    Nothing published for this version

  10. 0.0.2131 Jul 2022

    Nothing published for this version

  11. 0.0.2031 Jul 2022

    Nothing published for this version

  12. 0.0.1926 Apr 2022

    Nothing published for this version

  13. 0.0.1825 Apr 2022

    Nothing published for this version

  14. 0.0.1725 Apr 2022

    Nothing published for this version

  15. 0.0.1625 Apr 2022

    Nothing published for this version

  16. 0.0.1525 Apr 2022

    Nothing published for this version

  17. 0.0.1411 Apr 2022

    Nothing published for this version

  18. 0.0.1311 Apr 2022

    Nothing published for this version

  19. 0.0.1231 Mar 2022

    Nothing published for this version

  20. 0.0.1130 Mar 2022

    Nothing published for this version

  21. 0.0.1029 Mar 2022

    Nothing published for this version

  22. 0.0.929 Mar 2022

    Nothing published for this version

  23. 0.0.85 Mar 2022

    Nothing published for this version

  24. 0.0.724 Feb 2022

    Nothing published for this version

  25. 0.0.622 Feb 2022

    Nothing published for this version

  26. 0.0.514 Feb 2022

    Nothing published for this version

  27. 0.0.415 Aug 2023

    Nothing published for this version

  28. 0.0.311 Feb 2022

    Nothing published for this version

  29. 0.0.211 Feb 2022

    Nothing published for this version

  30. 0.0.13 Feb 2022

    Nothing published for this version