mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
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:
parent
ab7acbd5de
commit
9a72f31d60
28 changed files with 198 additions and 531 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue