rustdesk/flutter/lib/common
21pages ac124c0680
Some checks failed
CI / x86_64-unknown-linux-gnu (ubuntu-24.04) (push) Has been cancelled
Full Flutter CI / run-ci (push) Has been cancelled
flutter: improve address book pull error handling (#14813)
* flutter: improve address book pull error handling

Summary:
  - Show error messages when fetching the address book list fails.
  - After the initial fetch, switching back to the AB tab no longer re-fetches it, even if an error occurred or the error banner was dismissed.

  Tested:
  - Self-hosted server:
    - normal
    - 403 responses
    - legacy address book mode
  - Public server
  - Verified that switching tabs no longer re-fetches AB after the initial fetch, regardless of whether an error occurred or the error banner was cleared.

Signed-off-by: 21pages <sunboeasy@gmail.com>

* use resp.statusCode in address book json decoding

Signed-off-by: 21pages <sunboeasy@gmail.com>

* flutter: clear address book list errors on reset

Signed-off-by: 21pages <sunboeasy@gmail.com>

* flutter: clear address book pull errors consistently

Signed-off-by: 21pages <sunboeasy@gmail.com>

---------

Signed-off-by: 21pages <sunboeasy@gmail.com>
2026-04-18 11:19:32 +08:00
..
formatter update idController when create new connection 2023-08-08 21:20:06 +08:00
hbbs avatar (#14440) 2026-03-04 21:43:19 +08:00
widgets flutter: improve address book pull error handling (#14813) 2026-04-18 11:19:32 +08:00
shared_state.dart show TCP/UDP/IPv6 in tooltip (#12613) 2025-08-11 16:13:31 +08:00