ab show loading LinearProgressIndicator (#7538)

* Display the LinearProgressIndicator at the top of ab if the current ab is both empty and in a loading state.
* Add pull error like the legacy ab.
* When forcefully reading the 'ab' list, retrieve the personal ab guid to judge the current mode  to prevent server upgrades while the main window remains open

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-03-27 21:28:21 +08:00
committed by GitHub
parent cc30f7aa02
commit 22356940d9
2 changed files with 41 additions and 21 deletions

View File

@@ -48,6 +48,10 @@ class _AddressBookState extends State<AddressBook> {
} else {
return Column(
children: [
// NOT use Offstage to wrap LinearProgressIndicator
if (gFFI.abModel.currentAbLoading.value &&
gFFI.abModel.currentAbEmpty)
const LinearProgressIndicator(),
buildErrorBanner(context,
loading: gFFI.abModel.currentAbLoading,
err: gFFI.abModel.currentAbPullError,