How to use the LoadingIndicator
?
#2245
-
Sorry if this seems like a basic question, but how do you actually use the Just to take the example of the DataTable in the docs as a simple example, imagine that the data took some time to load as it was being pulled from a API or similar. Many thanks in advance for any advice! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
If you make the DataTable and LoadingIndicator the same size, you can start off with the indicator visible and the datatable invisible. Then when the data has loaded, you switch the two. Thinking about it, this could probably use a helper widget. Some container with a |
Beta Was this translation helpful? Give feedback.
-
well I have a requirement to display 4 to 5 tables where all the tables are fetching data from various The above example is rendering a single I initially developed with |
Beta Was this translation helpful? Give feedback.
-
This worked for me in logmerger, when reading from a really long log file. But I had to add this inside my "load next line" loop, to yield the event loop to the LoadingIndicator so that it could perform its animation:
|
Beta Was this translation helpful? Give feedback.
Try this...
You will probably need the v0.19.1 which has a fix for data table refreshing.