feat: show loading indicator when loading data from remote (#3120)

* chore: show circle indicator if fetch the data from remote

* chore: fix the lb warnings

* chore: create sdk-build for macOS
This commit is contained in:
Nathan.fooo 2023-08-05 15:02:05 +08:00 committed by GitHub
parent ab7acbd5de
commit 9a72f31d60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 198 additions and 531 deletions

View file

@ -65,7 +65,8 @@ class _DocumentPageState extends State<DocumentPage> {
child: BlocBuilder<DocumentBloc, DocumentState>(
builder: (context, state) {
return state.loadingState.when(
loading: () => const SizedBox.shrink(),
loading: () =>
const Center(child: CircularProgressIndicator.adaptive()),
finish: (result) => result.fold(
(error) {
Log.error(error);