When clicking on an OPEN LIST button, the app creates a series of lists needed for future display. I found out that when the number of items in the list increases, these calculations can take a little time (2, 3 seconds). So for better UX, I would like to add something similar to a loading indicator telling the user the "lists are being prepared".
In my app, I use the package Loading Indicator : it works fine.
So I wanted to use it for this situation.
Here's what I did :

1. I transformed my "void" list creating functions into "Future Void".
2. I added the async keyword to the function plugged to my "OPEN LIST BUTTON".

But... for some reason, it never displays the loading indicator....

Here's the code (UI part) :

```
 onMenuOuvrir: () async {
                      DialogBuilder(context).showLoadingIndicator(
                          text: 'Ouverture de la liste', color: Colors.black45);

                      uD.setSelectedCarnetList(
                          index, uD.userInfo!.carnetList![index].ref!);
                      await uD.getListReady();
                      DialogBuilder(context).hideOpenDialog();
                      Navigator.pushReplacementNamed(
                          context, EditCarnetScreen.id);
                    },

```

Here's the code (Provider / back end part) :

```
 Future<void> getListReady() async {
    await createBufferCarnetWordBank();
    await createBufferCarnetList();
    await createBufferGrammarList();
    await createBufferLevelList();
    setEditMode(false);
    clearSearchList();
  }

```

The functions "createBuffer...List" are all of type Future .

What am I doing wrong ?

I actually found out that the problem was elsewhere... not in the creation of the lists, but in the building of the "listview.builder" in the EditCarnetScreen.

So here's the question now... how can we display some kind of indicator while this task is being processed.... it seems to be "in between screens"...